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

:root {
    --colorBg: #0d0d14;
    --colorPanel: rgba(20, 20, 30, 0.92);
    --colorBorder: #1b2645;
    --colorText: #e8e3d3;
    --colorAccentTeal: #48c9b0;
    --colorAccentGold: #37a2d4;
    --colorAccentExternal: #f5e729;

    --fontDisplay: "Cinzel", Georgia, serif;
    --fontBody: "EB Garamond", Georgia, serif;
}

body {
    background-color: var(--colorBg);
    background-image: url("../images/wallpaper2.gif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--colorText);
    font-family: var(--fontBody);
    font-size: 18px;
    cursor: url("../cursor/Normal.cur"), auto;
}

.siteFrame {
    max-width: 1200px;
    margin: 30px auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.siteHeader {
    background: linear-gradient(to bottom, #2a3f7a 0%, #16264a 40%, #101c38 100%);
    box-shadow: inset 0 0 0 1px var(--colorBorder);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    display: flex;
    align-items: center;
    padding: 5px 24px 0 26px;
    height: 90px;
    gap: 18px;
}

.siteLogo {
    height: 70px;
    width: auto;
}

.siteTitle {
    color: var(--colorAccentGold);
    font-family: var(--fontDisplay);
    font-size: 1.4rem;
    text-shadow: #0a1530 2px 2px 4px;
}

.siteTagline {
    color: var(--colorText);
    opacity: 0.75;
    font-size: 0.9rem;
}

.pageWrapper {
    display: flex;
}

.sidebarLeft {
    display: flex;
    flex-direction: column;
    background: linear-gradient(200deg, #16264a 60%, #2a1a4a 90%);
    border-left: 1px solid var(--colorBorder);
    border-right: 1px solid var(--colorBorder);
    padding: 8px 8px 0;
    width: 190px;
    flex-shrink: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.content {
    flex: 1;
    background-color: var(--colorPanel);
    padding: 16px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.content h1 {
    background: linear-gradient(to bottom, #2a5c8a 0%, #1a3a63 60%, #16264a 100%);
    border: 1px solid var(--colorBorder);
    color: #fff;
    font-family: var(--fontDisplay);
    text-shadow: #0a1530 2px 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contentBody {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mascotGif {
    width: 70px;
    height: auto;
    flex-shrink: 0;
}

.content p {
    line-height: 1.6;
    font-size: 1.2rem;
}

.sidebarRight {
    background: linear-gradient(135deg, #16264a 60%, #4a3320 100%);
    border-left: 1px solid var(--colorBorder);
    border-right: 1px solid var(--colorBorder);
    padding: 8px 7px 0;
    width: 190px;
    flex-shrink: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.navBox {
    background-color: #1e2d5c;
    border: 1px solid var(--colorBorder);
    border-radius: 9px 3px;
    padding: 2px;
    margin-bottom: 3px;
    overflow: hidden;
}

.navHeader {
    background: linear-gradient(to bottom, #3a5a9e 0%, #24417f 60%, #1c3468 100%);
    border: 1px solid var(--colorBorder);
    border-top-left-radius: 8px;
    color: #f2f2f2;
    font-family: var(--fontDisplay);
    text-align: center;
    display: block;
    font-size: 0.7rem;
    padding: 2px 0;
}

.navBox ul {
    list-style: none;
}

.navBox li {
    display: flex;
    align-items: center;
    padding: 2px;
}

.navIcon {
    width: 22px;
    height: 22px;
    margin: 0 7px 0 3px;
    flex-shrink: 0;
}

.navBox a {
    color: #e5e5f5;
    text-shadow: #0a1530 2px 2px 4px;
    text-decoration: none;
    font-size: 1rem;
}

.navBox a:hover {
    text-decoration: underline;
}

.navBox a.externalLink {
    color: var(--colorAccentExternal);
    text-shadow: #4a3900 2px 2px 2px;
}

.siteMascot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
    margin-top: 16px;
    padding-bottom: 16px;
    flex: 1;
}

.siteMascot img {
    max-width: 150px;
}

.playerBody {
    padding: 8px;
    text-align: center;
}

.nowPlaying {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-bottom: 6px;
}

.playerControls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.playerControls button {
    background: linear-gradient(to bottom, #3a5a9e 0%, #24417f 50%, #3a5a9e 100%);
    border: 1px solid var(--colorBorder);
    color: var(--colorText);
    border-radius: 5px;
    padding: 5px 9px;
    font-size: 0.85rem;
    cursor: url("../cursor/Link.cur"), pointer;
}

.playerControls button:hover {
    filter: brightness(1.2);
}

#chattable {
    width: 100%;
    height: 380px;
    border: none;
    display: block;
}

.siteFooter {
    background: linear-gradient(to bottom, #2a3f7a 0%, #16264a 40%, #101c38 100%);
    box-shadow: 1px 20px 40px rgba(20, 20, 20, 0.5), inset 0 0 0 1px var(--colorBorder);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    text-align: center;
    padding: 13px 20px;
}

.siteFooter span {
    color: #fff;
    text-shadow: #0a1530 2px 1px 2px;
    font-size: 0.95rem;
}

.siteFooter a {
    color: #a0c6ff;
    text-shadow: #0a1530 2px 1px 2px;
    margin: 0 4px;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: url("../cursor/Link.cur"), pointer;
}

.siteFooter a:hover {
    text-decoration: underline;
}

.navBox a {
    cursor: url("../cursor/Link.cur"), pointer;
}

.posterBox {
    padding: 4px;
}

.sidebarPoster {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.content h2 {
    background: linear-gradient(to bottom, #2a5c8a 0%, #1a3a63 60%, #16264a 100%);
    border: 1px solid var(--colorBorder);
    color: #fff;
    font-family: var(--fontDisplay);
    text-shadow: #0a1530 2px 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 1rem;
    margin: 20px 0 10px;
}

.contentNote {
    font-weight: bold;
    font-size: 0.9rem;
}

.guestbookLink {
    color: inherit;
    font-weight: bold;
}

.guestbookLink:hover {
    color: var(--colorAccentGold);
}

.contentInline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contentInlineImg {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

.playerTime {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.volumeControl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

#seekBar,
#volumeSlider {
    width: 100%;
    accent-color: var(--colorAccentGold);
}

.volumeControl #volumeSlider {
    width: 70%;
}

.entryRow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.entryImage {
    width: 200px;
    height: 280px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.gamesGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.gameThumb {
    cursor: url("../cursor/Link.cur"), pointer;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.gameThumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.gameThumb:hover img {
    transform: scale(1.05);
}

.honorableGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.honorableThumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background-color: var(--colorPanel);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.honorableThumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gameModalOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.gameModalText .inlineEmoji {
    height: 24px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin: 0 2px;
}

.gameModalOverlay.active {
    display: flex;
}

.gameModal {
    position: relative;
    display: flex;
    gap: 24px;
    background-color: var(--colorPanel);
    border: 1px solid var(--colorBorder);
    border-radius: 6px;
    padding: 24px;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.gameModalImg {
    width: 260px;
    height: 340px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.gameModalText {
    flex: 1;
}

.gameModalText h2 {
    background: linear-gradient(to bottom, #2a5c8a 0%, #1a3a63 60%, #16264a 100%);
    border: 1px solid var(--colorBorder);
    color: #fff;
    font-family: var(--fontDisplay);
    text-shadow: #0a1530 2px 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.gameModalText p {
    line-height: 1.7;
    font-size: 1.25rem;
}

.gameModalClose {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--colorText);
    font-size: 1.7rem;
    cursor: url("../cursor/Link.cur"), pointer;
    line-height: 1;
}

.gameModalClose:hover {
    color: var(--colorAccentGold);
}

@media (max-width: 700px) {
    .gameModal {
        flex-direction: column;
        max-height: 90vh;
    }
    .gameModalImg {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

.showCard {
    display: flex;
    gap: 16px;
    padding: 0 0 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--colorBorder);
}

.showCoverWrap {
    position: relative;
    flex-shrink: 0;
}

.showCover {
    width: 150px;
    height: 210px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.showOpPlay {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #3a5a9e 0%, #24417f 50%, #3a5a9e 100%);
    border: 2px solid var(--colorBg);
    color: var(--colorText);
    font-size: 1rem;
    cursor: url("../cursor/Link.cur"), pointer;
}

.showOpPlay:hover {
    filter: brightness(1.2);
}

.showInfo {
    flex: 1;
}

.showInfo h2 {
    margin-top: 0;
}

@media (max-width: 900px) {
    body {
        font-size: 15px;
    }

    .siteFrame {
        margin: 0;
        max-width: 100%;
    }

    .siteHeader {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 12px 10px;
        border-radius: 0;
        gap: 6px;
    }

    .siteLogo {
        height: 50px;
    }

    .siteTitle {
        font-size: 1.05rem;
    }

    .siteTagline {
        font-size: 0.75rem;
    }

    .pageWrapper {
        flex-direction: column;
    }

    .sidebarLeft,
    .sidebarRight,
    .content {
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }

    .content h1,
    .content h2 {
        font-size: 0.9rem;
    }

    .content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .mascotGif {
        width: 50px;
    }

    .entryRow {
        flex-direction: column;
    }

    .entryImage {
        width: 100%;
        max-width: 220px;
        height: auto;
        margin: 0 auto;
    }

    .gamesGrid,
    .honorableGrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .fanartGrid {
        columns: 2;
        column-gap: 8px;
    }

    .fanartGrid img {
        margin-bottom: 8px;
    }

    .showCard {
        flex-direction: column;
        gap: 10px;
    }

    .showCoverWrap {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .showCover {
        width: 100%;
        height: auto;
    }

    .sidebarPoster {
        max-width: 140px;
        margin: 0 auto;
    }

    .siteMascot img {
        max-width: 90px;
    }

    .siteFooter {
        border-radius: 0;
        padding: 10px 12px;
    }

    .siteFooter span,
    .siteFooter a {
        font-size: 0.78rem;
    }
}