body {
    background: #0a0a0c;
    color: #e0e0e0;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100vw;
    min-width: 100vw;
}
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
    width: 100vw;
    min-width: 100vw;
}
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 16px 16px;
    background: url('images/backgrounddarker3.webp') center center / cover no-repeat, #3d0000;
    border-bottom: 2px solid #2e3133;
    position: relative;
}
header img {
    height: 128px;
    margin-bottom: 12px;
}
header img[src*="images/LogoWider"] {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
}
.subtitle {
    margin-top: 0.75em;
    margin-bottom: 18px;
    font-size: 1.35rem;
    font-family: 'Bangers', Impact, sans-serif;
    color: #fff;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff0000, #ff9900, #ffee00, #33ff00, #00ffee, #0066ff, #cc00ff, #ff0080, #ff0000);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-weight: bold;
    animation: rainbow-move 3s linear infinite;
}
@keyframes rainbow-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.main-menu {
    display: flex;
    gap: 32px;
    margin: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    transition: max-height 0.28s ease, padding 0.28s ease, opacity 0.28s ease;
}
.main-menu a {
    color: #ff5722;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: text-shadow 0.2s, color 0.2s;
    text-shadow: 0 2px 8px #000a, 0 0 8px #ff5722cc;
    position: relative;
}
.main-menu a:hover, .main-menu a:focus {
    color: #fff;
    text-shadow: 0 0 16px #ff5722, 0 0 24px #ff5722cc;
}
.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid #ff5722;
    background: rgba(18, 8, 28, 0.85);
    color: #fff;
    font-family: 'Bangers', Impact, sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.menu-toggle:hover,
.menu-toggle:focus {
    transform: translateY(-1px);
    border-color: #fff;
    background: rgba(26, 12, 38, 0.95);
}
.menu-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}
.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: #ff5722;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.menu-toggle.is-open {
    border-color: #fff;
    background: rgba(48, 18, 58, 0.95);
}
.menu-toggle.is-open .menu-toggle-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open .menu-toggle-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}
main {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
}
@media (max-width: 900px) {
    .main-menu {
        gap: 18px;
    }
    .main-menu a {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
}
.game-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    width: 100%;
    min-height: 220px;
    max-width: none;
    min-width: 0;
    border-radius: 20px;
    box-shadow: 0 4px 32px 0 #b71c1cff;
    background: url('images/backgrounddarker3.webp') center center / cover no-repeat,#232526;
    overflow: hidden;
    text-align: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(120px) scale(1);
}
.game-card.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.game-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: #ff5722;
    animation: shimmer-glow 1.2s infinite alternate;
}
.game-card:focus, .game-card:active {
    outline: 3px solid #ff5722;
    box-shadow: 0 0 0 4px #ff572288, 0 0 24px 8px #b71c1ccc, 0 0 16px 4px #ff5722cc;
    border-color: #ff5722;
}
.game-card img {
    height: auto;
    aspect-ratio: 16 / 9;
    width: auto;
    display: block;
    min-width: 220px;
    max-width: 50vw;
    max-height: 320px;
    align-self: center;
    object-position: left center;
    object-fit: cover;
    background: #111;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
.game-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.game-card button, .game-card a {
    pointer-events: auto;
}
.game-card button:disabled {
    pointer-events: none;
    cursor: not-allowed;
}
.game-card:has(button:disabled) {
    pointer-events: none;
    cursor: default;
}
.game-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff5722;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px #000a, 0 0 12px #ff5722cc;
}
.game-type {
    font-size: 0.95rem;
    color: #ff9800;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-style: italic;
    text-shadow: 0 0 8px #ff980088, 0 0 2px #fff2;
    background: linear-gradient(90deg, #ff9800 60%, #ffd180 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.game-desc {
    font-size: 1rem;
    color: #e0e0e0;
    flex: 1;
}
.parallax-bg {
    position: fixed;
    top: 0; left: 0; right: 0; width: 100vw; min-width: 100vw; height: 100vh;
    background: url('images/backgrounddarker2.webp') center center / cover repeat fixed;
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
}
.parallax-bg2 {
    position: fixed;
    top: 0; left: 0; right: 0; width: 100vw; min-width: 100vw; height: 100vh;
    background: url('images/BlackIce.webp') center center / cover repeat fixed;
    z-index: 0;
    opacity: 0.13;
    pointer-events: none;
}
.site-additive-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    min-width: 100vw;
    pointer-events: none;
    z-index: 10;
    background: url('images/overlay-effect.png') center center / cover repeat;
    opacity: 0.045;
    mix-blend-mode: multiply;
}
.eldritch-strange-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    border-radius: 20px;
    overflow: hidden;
}
.eldritch-strange-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.emailoctopus-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(20,10,30,0.7);
    transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.18s cubic-bezier(.2,.8,.2,1), background 0.18s;
    transform-origin: center;
    box-shadow: 0 2px 12px rgba(162,89,255,0.15);
    margin-bottom: 18px;
    flex-wrap: nowrap;
    width: min(780px, 100%);
    justify-content: center;
    min-width: 0;
}

/* On focus within the form (a field was clicked), grow slightly and add a bright shimmer */
.emailoctopus-form:focus-within,
.emailoctopus-form.active {
    transform: scale(1.03);
    box-shadow: 0 10px 48px rgba(162,89,255,0.32), 0 0 28px rgba(224,64,251,0.18), inset 0 0 40px rgba(255,255,255,0.035);
    background: linear-gradient(180deg, rgba(30,20,40,0.92), rgba(25,14,40,0.85));
}

/* Smaller scale on narrow screens so the layout doesn't jump */
@media (max-width: 700px) {
    .emailoctopus-form:focus-within, .emailoctopus-form.active {
        transform: scale(1.02);
    }
}

/* Light up inputs when focused */
.emailoctopus-form .contact-form-field:focus,
.emailoctopus-form input:focus,
.emailoctopus-form textarea:focus {
    box-shadow: 0 8px 28px rgba(162,89,255,0.18), 0 0 12px rgba(224,64,251,0.12);
    border-color: #fff;
    outline: none;
}

.emailoctopus-form input,
.emailoctopus-form textarea {
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.12s;
}

.emailoctopus-form .contact-form-field {
    border: 2px solid transparent;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    min-width: 220px;
    background: #1a1022;
    color: #fff;
    width: auto;
    margin-top: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 420px;
}

/* Inline subscription message styling (success / error) */
.subscribe-msg {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(45,45,55,0.86);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 260ms ease, transform 200ms ease;
}
.subscribe-msg.visible {
    opacity: 1;
    transform: translateY(0);
}
.subscribe-msg.success {
    background: linear-gradient(90deg, #0dbf7a, #00d68f);
    color: #012409;
}
.subscribe-msg.error {
    background: linear-gradient(90deg,#ff7b7b,#ff5252);
    color: #2b0a0a;
}

.emailoctopus-form .contact-form-field:focus,
.emailoctopus-form input:focus,
.emailoctopus-form textarea:focus {
    transform: translateY(-2px) scale(1.01);
}

.subscribe-btn {
    background: linear-gradient(90deg,#a259ff,#e040fb);
    color: #fff;
    font-family: 'Bangers', Impact, sans-serif;
    font-size: 1.08rem;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px #a259ff44;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.18s;
    white-space: nowrap;
    line-height: 1;
}

.carousel-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    border-radius: 999px;
    transition: opacity 0.15s ease, transform 0.15s ease;
    opacity: 0.3;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    cursor: pointer;
}

.carousel-btn:focus-visible,
.carousel-btn:active {
    opacity: 1;
}

.carousel-btn:not(:active):hover {
    transform: translateY(-1px);
}

.eldritch-blob1 {
    filter: blur(18px);
    opacity: 0.55;
    animation: eldritch-blob1-move 7s ease-in-out infinite alternate;
}
.eldritch-blob2 {
    filter: blur(24px);
    opacity: 0.38;
    animation: eldritch-blob2-move 9s ease-in-out infinite alternate;
}
.eldritch-blob3 {
    filter: blur(32px);
    opacity: 0.32;
    animation: eldritch-blob3-move 11s ease-in-out infinite alternate;
}
@keyframes eldritch-blob1-move {
    0% { transform: translate(0,0) scale(1.1); }
    40% { transform: translate(320px,-18px) scale(1.2); }
    100% { transform: translate(-320px,10px) scale(1.05); }
}
@keyframes eldritch-blob2-move {
    0% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-350px,24px) scale(1.18); }
    100% { transform: translate(350px,-20px) scale(1.08); }
}
@keyframes eldritch-blob3-move {
    0% { transform: translate(0,0) scale(1.05); }
    60% { transform: translate(350px,30px) scale(1.22); }
    100% { transform: translate(-350px,-18px) scale(1.1); }
}
body, header, main {
    position: relative;
    z-index: 1;
}
@media (max-width: 700px) {
    header {
        padding: 24px 8px 8px 8px;
        flex-direction: column;
        align-items: center;
    }
    header img {
        margin-bottom: 12px;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .main-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 12px 0 0 0;
        padding: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        border-radius: 16px;
        background: rgba(15, 6, 25, 0.94);
        border: 1px solid rgba(255, 87, 34, 0.32);
        box-shadow: none;
        animation: none;
    }
    .main-menu.menu-open {
        padding: 16px 18px;
        max-height: 320px;
        opacity: 1;
        box-shadow: 0 16px 32px rgba(0,0,0,0.65), 0 0 16px rgba(255, 87, 34, 0.35);
        animation: menuZoomIn 0.34s ease forwards;
        transform-origin: right center;
    }
    .main-menu.menu-open a {
        width: 100%;
        text-align: center;
    }
    .main-menu.menu-open.menu-closing {
        animation: menuZoomOut 0.34s ease forwards;
        transform-origin: left center;
    }
    .game-card {
        flex-direction: column;
        align-items: stretch;
        min-height: unset;
    }
    .game-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        min-width: unset;
        max-width: 100%;
        max-height: 50vh;
        object-fit: contain;
        border-radius: 20px 20px 0 0;
    }
    .game-card-content {
        padding: 16px;
    }
    .buy-button,
    .learn-more-button {
        display: block;
        width: min(320px, 100%);
        margin: 12px auto;
        text-align: center;
    }
    .feature-list {
        columns: 1;
        max-width: 100%;
        padding-left: 1rem;
    }
    .about-card,
    .devlog-card {
        flex-direction: column !important;
        align-items: stretch !important;
        position: relative;
        padding-top: 32px;
    }
    .about-card img,
    .devlog-card img {
        width: min(420px, 92%);
        height: auto;
        margin: -20px auto 22px;
        border-radius: 24px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
        transform: translateY(-12px);
    }
    .about-card .game-card-content,
    .devlog-card .game-card-content {
        align-items: center;
        text-align: center;
        justify-content: flex-start;
        padding: 32px 24px 24px;
    }
}
@keyframes menuZoomIn {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.88);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
@keyframes menuZoomOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px) scale(0.88);
    }
}
@keyframes shimmer-glow {
    0%, 100% {
        box-shadow: 0 8px 32px #0007, 0 0 24px 8px #ff5722cc, 0 0 32px 12px #b71c1cff;
    }
    50% {
        box-shadow: 0 8px 32px #0007, 0 0 40px 16px #ff8a50ff, 0 0 48px 20px #ff5722ff;
    }
}
@keyframes shimmer-sweep {
    0% {
        box-shadow: inset -100px 0 80px 0 rgba(255, 255, 200, 0.8), 0 4px 24px #ff572288;
    }
    100% {
        box-shadow: inset 400px 0 80px 0 rgba(255, 255, 200, 0), 0 4px 24px #ff572288;
    }
}
.buy-button, .learn-more-button {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 28px;
    font-size: 1.08rem;
    font-family: 'Bangers', Impact, sans-serif;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s, border 0.18s;
    box-shadow: 0 2px 12px #b71c1c33;
    text-align: center;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}
.buy-button {
    background: linear-gradient(90deg, #232526, #434343);
    color: #ff5722;
    border-color: #ff5722;
}
.buy-button:hover, .buy-button:focus {
    background: linear-gradient(90deg, #434343, #232526);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 4px 24px #ff572288;
    animation: shimmer-sweep 0.5s ease-out forwards;
}
.learn-more-button {
    background: linear-gradient(90deg, #232526, #434343);
    color: #ff5722;
    border-color: #ff5722;
}
.learn-more-button:hover, .learn-more-button:focus {
    background: linear-gradient(90deg, #434343, #232526);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 4px 24px #ff572288;
    animation: shimmer-sweep 0.5s ease-out forwards;
}
.feature-list {
    color: #e0e0e0;
    line-height: 1.8;
    columns: 2;
    max-width: 700px;
    margin: 16px 0;
    padding-left: 1.15rem;
}
.feature-list li {
    margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
    .feature-list {
        columns: 1;
        max-width: 100%;
        padding-left: 1rem;
    }
}

/* Carousel transition animations */
@keyframes glitchOut {
    0% {
        opacity: 1;
        transform: translateX(0);
        filter: none;
    }
    50% {
        opacity: 0.5;
        transform: translateX(-10px);
        filter: hue-rotate(90deg) brightness(1.5);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px);
        filter: hue-rotate(180deg) brightness(0.5);
    }
}

@keyframes glitchIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
        filter: hue-rotate(180deg) brightness(0.5);
    }
    50% {
        opacity: 0.5;
        transform: translateX(10px);
        filter: hue-rotate(90deg) brightness(1.5);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: none;
    }
}

#carousel-img.transition-out {
    animation: glitchOut 0.4s ease-out forwards;
}

#carousel-img.transition-in {
    animation: glitchIn 0.4s ease-out forwards;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 480px;
    margin: 40px auto 0 auto;
    padding: 32px 24px;
    background: rgba(30,20,40,0.92);
    border-radius: 18px;
    box-shadow: 0 4px 32px #a259ff44;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    border: 2.5px solid #444;
}
.contact-form-container label {
    width: 100%;
    display: block;
    color: #ff5722;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.contact-form-container .contact-form-field {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 7px;
    border: 2px solid #888;
        .main-menu.menu-open.menu-closing {
            animation: menuZoomOut 0.34s ease forwards;
            transform-origin: left center;
        }
    font-size: 1.08rem;
    background: #18181b;
    color: #fff;
    box-shadow: 0 1px 6px #0004;
    transition: border-color 0.18s;
    display: block;
    box-sizing: border-box;
}
.contact-form-container .contact-form-field:focus {
    border-color: #fff;
    outline: none;
}

