/* ============================================================
   AXE GAME STUDIO — Shared stylesheet for game detail pages
   Timber · blade · chop aesthetic matching the main site
   ============================================================ */

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

body {
    background: #1a120c;
    font-family: 'Inter', sans-serif;
    color: #e0d8c8;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---------- Timber background layers ---------- */
.timber-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #2a1a10;
    background-image: repeating-linear-gradient(45deg, rgba(80, 50, 30, 0.15) 0px, rgba(80, 50, 30, 0.15) 2px, transparent 2px, transparent 30px),
                      radial-gradient(circle at 15% 30%, rgba(120, 70, 40, 0.2) 4px, transparent 4px);
    background-size: 32px 32px, 50px 50px;
    z-index: -6;
}

.chop-slice {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: repeating-linear-gradient(115deg, rgba(180, 100, 60, 0.12) 0px, rgba(180, 100, 60, 0.12) 2px, transparent 2px, transparent 50px);
    pointer-events: none;
    z-index: -5;
}

.wood-grain {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 220px;
    background: repeating-linear-gradient(0deg, rgba(100, 60, 30, 0.2) 0px, rgba(100, 60, 30, 0.2) 3px, transparent 3px, transparent 35px);
    pointer-events: none;
    z-index: -4;
    animation: grainShift 18s infinite linear;
}
@keyframes grainShift {
    0% { background-position: 0 0; }
    100% { background-position: 0 45px; }
}

.chip-fall {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(3px 3px at 15% 30%, rgba(160, 100, 50, 0.35) 1px, transparent 1px),
                      radial-gradient(2px 2px at 70% 60%, rgba(140, 80, 40, 0.3) 1px, transparent 1px);
    background-size: 90px 90px, 120px 120px;
    pointer-events: none;
    z-index: -3;
    animation: chipSettle 22s infinite linear;
}
@keyframes chipSettle {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 70px, 0 100px; }
}

.timber-blob {
    position: fixed;
    background: radial-gradient(ellipse, #6a4a2a, #2a1a0a);
    filter: blur(110px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.28;
    animation: timberPulse 25s infinite alternate;
}
@keyframes timberPulse {
    0% { transform: scale(1); opacity: 0.22; }
    100% { transform: scale(1.1); opacity: 0.36; }
}
.timber1 { width: 580px; height: 580px; top: -15%; left: -15%; background: radial-gradient(circle, #7a5a3a, #3a2a1a); }
.timber2 { width: 680px; height: 680px; bottom: -20%; right: -10%; background: radial-gradient(circle, #6a4a2a, #2a1a0a); animation-duration: 28s; }

.blade-cursor {
    position: fixed;
    width: 20px; height: 20px;
    background: #c08860;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    pointer-events: none;
    z-index: 9999;
    transition: 0.05s linear;
    opacity: 0.6;
}

/* ---------- Container ---------- */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    position: relative;
    background: rgba(26, 18, 12, 0.8);
    backdrop-filter: blur(3px);
    border-left: 2px solid #b87a4a;
    border-right: 2px solid #b87a4a;
}

/* ---------- Header ---------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1rem 1.5rem;
    background: rgba(40, 28, 18, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 5px solid #b87a4a;
    border-left: 2px solid #b87a4a;
    transform: skewX(-0.5deg);
}
.logo h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    background: linear-gradient(135deg, #e0c8a8, #c08860, #a06840);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.logo {
    text-decoration: none;
    display: inline-block;
}
.logo .axe-tag {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #c08860;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    transform: skewX(0.5deg);
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #d0b898;
    transition: 0.2s;
    font-size: 0.82rem;
    border-bottom: 1px solid transparent;
}
.nav-links a:hover {
    color: #c08860;
    border-bottom-color: #c08860;
}

/* ---------- Axe button ---------- */
.btn-axe {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #5a3a2a;
    border: none;
    padding: 0.85rem 2.2rem;
    font-weight: 700;
    text-decoration: none;
    color: #f0e0d0;
    transition: 0.2s;
    font-size: 1rem;
    cursor: pointer;
}
.btn-axe:hover {
    background: #b87a4a;
    transform: translateY(-3px);
}

/* ---------- Game hero ---------- */
.game-hero {
    margin: 2rem 0 5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    background: rgba(20, 12, 8, 0.7);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-left: 6px solid #b87a4a;
    border-right: 2px solid #b87a4a;
}
.hero-left {
    flex: 1.2;
    min-width: 280px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: #c08860;
    margin-bottom: 1.5rem;
    transition: 0.2s;
}
.back-link i { transition: transform 0.2s; }
.back-link:hover { color: #d8a878; }
.back-link:hover i { transform: translateX(-6px); }

.game-badge {
    display: inline-block;
    background: #b87a4a20;
    padding: 0.2rem 1rem;
    font-family: monospace;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    border-left: 4px solid #b87a4a;
    color: #d8a878;
    letter-spacing: 1px;
}
.game-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    color: #e0c8a8;
}
.game-tagline {
    font-size: 0.95rem;
    font-family: monospace;
    color: #c08860;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}
.game-summary {
    font-size: 1.05rem;
    color: #d0b898;
    max-width: 520px;
    margin-bottom: 2rem;
    border-left: 4px solid #b87a4a;
    padding-left: 1rem;
    line-height: 1.6;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}
.updated-axe {
    font-family: monospace;
    font-size: 0.72rem;
    color: #a07858;
    letter-spacing: 1px;
}

/* Hero showcase — square app icon */
.hero-right {
    flex: 0.85;
    min-width: 260px;
    display: flex;
    justify-content: center;
}
.game-icon-frame {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    background: #0a0604;
    border: 1px solid #b87a4a;
    box-shadow: 12px 12px 0 #b87a4a20;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.game-icon-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s;
}
.game-icon-frame:hover img {
    transform: scale(1.04);
}

/* ---------- Section common ---------- */
.section-block {
    margin: 5rem 0;
}
.section-title-axe {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #e0c8a8, #c08860, #a06840);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.3rem;
}
.section-sub-axe {
    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: #c08860;
    margin-bottom: 2.5rem;
}

/* ---------- About ---------- */
.about-block {
    background: #0a0604;
    padding: 2rem;
    border-top: 4px solid #b87a4a;
    border-bottom: 4px solid #b87a4a;
    max-width: 820px;
    margin: 0 auto;
}
.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d0b898;
    margin-bottom: 1.2rem;
}
.about-text:last-child { margin-bottom: 0; }
.about-text .axe-accent {
    color: #c08860;
    font-weight: 700;
}

/* ---------- Features grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: #140e0acc;
    backdrop-filter: blur(6px);
    padding: 2rem 1.5rem;
    border-bottom: 5px solid #b87a4a;
    transition: 0.25s;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-6px);
    background: #241a14;
    border-bottom-color: #c08860;
}
.feature-icon {
    font-size: 2rem;
    color: #c08860;
    margin-bottom: 1rem;
}
.feature-card:hover .feature-icon {
    color: #d8a878;
}
.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #e0c8a8;
}
.feature-description {
    font-size: 0.95rem;
    color: #c8b090;
    line-height: 1.5;
}

/* ---------- Screenshots ---------- */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.screenshot {
    position: relative;
    border: 1px solid #5a3a2a;
    border-bottom: 4px solid #b87a4a;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    background: #0a0604;
    transition: 0.25s;
}
.screenshot:hover {
    transform: translateY(-4px);
    border-bottom-color: #c08860;
    box-shadow: 8px 8px 0 #b87a4a20;
}
.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.screenshot:hover img {
    transform: scale(1.05);
}

/* ---------- Download CTA ---------- */
.download-cta {
    margin: 6rem 0 4rem;
    background: #0a0604;
    padding: 3rem 2rem;
    border: 1px solid #b87a4a;
    border-left: 6px solid #b87a4a;
    text-align: center;
}
.download-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: #d8a878;
}
.download-statement {
    font-size: 1.05rem;
    color: #d0b898;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    margin-top: 4rem;
    font-size: 0.7rem;
    color: #a07858;
    border-top: 1px solid #3a2a1a;
    padding-top: 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
    .container { padding: 1rem; }
    .game-hero { padding: 1.5rem; flex-direction: column; }
    .hero-right { width: 100%; }
    .game-icon-frame { max-width: 280px; margin: 0 auto; }
    .game-title { font-size: 2.2rem; }
    .section-title-axe { font-size: 1.8rem; }
    .download-title { font-size: 2rem; }
    .nav-links { gap: 1rem; }
}
@media (max-width: 480px) {
    .game-title { font-size: 1.8rem; }
    .about-text { font-size: 0.98rem; }
    .btn-axe { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
}
