*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

html {
    min-height: 100vh;
}

body {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #000;
    font-family: Georgia, serif;
    color: #c4d7ed;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Metamorphous', cursive, serif;
    font-weight: normal;
}

#abyss-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.page-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}

#header-placeholder {
    width: 100%;
    flex-shrink: 0;
    z-index: 100;
}

header {
    width: 100%;
    background: linear-gradient(to bottom, rgba(2, 6, 18, 0.95), rgba(0, 0, 0, 0.7));
    border-bottom: 1px solid rgba(138, 180, 248, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    z-index: 100;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #e2f0ff;
    text-shadow: 0 0 20px rgba(0, 168, 204, 0.4);
    text-align: center;
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    border-bottom: none;
}

nav a {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.2s, text-shadow 0.2s;
}

nav a:hover,
nav a:active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#footer-placeholder {
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    z-index: 200;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    z-index: 100;
}

.book-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    padding: 20px 15px;
    background: rgba(2, 6, 18, 0.75);
    border: 1px solid rgba(138, 180, 248, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    min-height: 320px;
}

.book-showcase::-webkit-scrollbar {
    width: 6px;
}

.book-showcase::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

.book-showcase::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 204, 0.4);
    border-radius: 4px;
}

.cover-column {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cover-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(226, 240, 255, 0.1);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: crisp-edges;
}

.status-banner {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #00a8cc, #007090);
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 35px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.info-column {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 1.4rem;
    color: #a2c2e8;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

p.description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #c4d7ed;
    text-align: justify !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
}

p.description.text-center {
    text-align: center !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

.trident-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 160px;
    height: 42px;
    background: linear-gradient(to bottom, #0a2f3d, #051b24);
    color: #e2f0ff;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 30px;
    border: 1px solid rgba(0, 168, 204, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s, filter 0.3s;
}

.trident-btn:hover,
.trident-btn:active {
    filter: brightness(1.2);
    transform: translateY(-2px);
    border-color: rgba(0, 168, 204, 0.8);
}

.filter-white {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(180deg) brightness(100%) contrast(100%);
}

footer,
#abyss-footer {
    width: 100%;
    background: linear-gradient(to top, rgba(2, 6, 18, 0.95), rgba(0, 0, 0, 0.7));
    border-top: 1px solid rgba(138, 180, 248, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: #8fa4bc;
    line-height: 1.4;
}

.footer-title {
    font-family: 'Metamorphous', cursive, serif;
    color: #a2c2e8;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-icon-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(138, 180, 248, 0.05);
    border: 1px solid rgba(138, 180, 248, 0.1);
    transition: background 0.3s, transform 0.2s;
}

.footer-logo {
    width: 18px;
    height: auto;
    object-fit: contain;
}

.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 10px;
}

.about-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #e2f0ff;
    text-shadow: 0 0 15px rgba(0, 168, 204, 0.4);
}

.contact-section {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.contact-title {
    text-align: center;
    width: 100%;
    font-size: 2rem;
    color: #e2f0ff;
    text-shadow: 0 0 15px rgba(0, 168, 204, 0.4);
}

.logo-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.logo-links-container a {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.logo-links-container a:hover {
    transform: scale(1.1);
}

.logo-links-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.patreon-logo {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(180deg) brightness(100%) contrast(100%);
}

@media (max-width: 768px) {
    nav {
        gap: 16px;
    }

    .book-showcase {
        padding: 18px 14px;
        gap: 18px;
        max-height: none;
    }

    .cover-wrapper {
        height: 280px;
    }

    .status-banner {
        top: 12px;
        right: -30px;
        padding: 4px 28px;
        font-size: 0.65rem;
    }

    .footer-content {
        gap: 12px;
    }
}

@media (min-width: 769px) {
    header {
        padding: 25px 15px 20px;
    }

    .header-content h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
        margin: 0 0 5px;
    }

    nav {
        gap: 25px;
    }

    .book-showcase {
        flex-direction: row;
        gap: 40px;
        padding: 35px;
        overflow-y: hidden;
    }

    .cover-column {
        flex: 0 0 240px;
        max-width: 240px;
    }

    .cover-wrapper {
        height: 350px;
    }

    h2 {
        text-align: left;
        font-size: 1.8rem;
    }

    p.description {
        font-size: 1.05rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}