:root {
    --theme-bg: #f5f0ff;
    --theme-surface: #ffffff;
    --theme-soft: #ece4ff;
    --theme-softer: #f9f6ff;
    --theme-border: #d9c9f7;
    --theme-light: #a78bfa;
    --theme-accent: #8b5cf6;
    --theme-strong: #7c3aed;
    --theme-deep: #5b21b6;
    --theme-text: #2e1f4a;
    --theme-muted: #6b5a8a;
    --theme-shadow: 0 6px 18px rgb(139 92 246 / 18%);
    --radius-sm: 14px;
    --radius-md: 20px;
    --font-body: "Quicksand", "Segoe UI", Arial, sans-serif;
    --font-display: "Pacifico", "Quicksand", cursive;
}

body {
    font-family: var(--font-body);
    background: var(--theme-bg);
    background-image:
        radial-gradient(circle at 12% 8%, rgb(221 208 255 / 70%) 0, transparent 38%),
        radial-gradient(circle at 92% 92%, rgb(205 190 255 / 55%) 0, transparent 40%);
    background-attachment: fixed;
    color: var(--theme-text);
    margin: 0;
    padding: 40px;
    padding-left: 260px;
}

.container {
    max-width: 800px;
    margin: auto;
}

.side-nav {
    background: linear-gradient(180deg, #e6dcff 0%, #d4c4ff 100%);
    border-right: 2px solid var(--theme-border);
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    left: 0;
    padding: 28px 18px;
    position: fixed;
    top: 0;
    width: 220px;
    z-index: 10;
}

.nav-brand {
    align-items: center;
    background: linear-gradient(135deg, var(--theme-strong), var(--theme-accent));
    border-radius: 999px;
    box-shadow: var(--theme-shadow);
    color: white;
    display: inline-flex;
    font-size: 18px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    margin-bottom: 18px;
    text-decoration: none;
    width: 56px;
}

.side-nav .nav-link {
    border-radius: 999px;
    color: var(--theme-text);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

    .side-nav .nav-link:hover,
    .side-nav .nav-link:focus-visible {
        background: rgb(255 255 255 / 75%);
        color: var(--theme-deep);
        transform: translateX(3px);
    }

    .side-nav .nav-link:focus-visible {
        outline: 2px solid var(--theme-strong);
        outline-offset: 2px;
    }

    .side-nav .nav-link.active {
        background: var(--theme-strong);
        box-shadow: var(--theme-shadow);
        color: white;
        font-weight: 700;
    }

h1 {
    color: var(--theme-deep);
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 10px;
}

    h1::after {
        color: var(--theme-light);
        content: " \2661";
        font-family: var(--font-body);
        font-size: 0.6em;
    }

h2 {
    color: var(--theme-deep);
}

.subtitle {
    color: var(--theme-strong);
    font-size: 20px;
    font-weight: 600;
}

.home-hero {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 220px;
}

.home-hero-gallery {
    aspect-ratio: 3 / 4;
    border: 4px solid var(--theme-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.home-hero-photo {
    aspect-ratio: 3 / 4;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-arrow {
    align-items: center;
    background: rgb(0 0 0 / 45%);
    border: 0;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
    background: rgb(0 0 0 / 70%);
}

.gallery-arrow-previous { left: 8px; }
.gallery-arrow-next { right: 8px; }

.gallery-count {
    background: rgb(0 0 0 / 55%);
    border-radius: 12px;
    bottom: 8px;
    color: white;
    font-size: 12px;
    left: 50%;
    padding: 3px 8px;
    position: absolute;
    transform: translateX(-50%);
}

.accordion {
    background: var(--theme-surface);
    border: 2px solid var(--theme-border);
    border-radius: var(--radius-md);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
    margin-top: 16px;
}

.accordion-item {
    background: var(--theme-surface);
    border-bottom: 1px solid var(--theme-border);
}

    .accordion-item:last-child {
        border-bottom: 0;
    }

    .accordion-item summary {
        align-items: center;
        cursor: pointer;
        display: grid;
        gap: 16px;
        grid-template-columns: minmax(0, 1fr) max-content 24px;
        list-style: none;
        padding: 18px 20px;
        position: relative;
    }

        .accordion-item summary span:first-child {
            font-weight: 700;
        }

        .accordion-item summary::-webkit-details-marker {
            display: none;
        }

        .accordion-item summary::after {
            color: var(--theme-accent);
            content: "+";
            flex: 0 0 auto;
            font-size: 22px;
            font-weight: 700;
            grid-column: 3;
            line-height: 1;
            text-align: center;
        }

    .accordion-item[open] summary::after {
        content: "-";
    }

    .accordion-item summary:hover,
    .accordion-item summary:focus-visible {
        background: var(--theme-softer);
    }

    .accordion-item summary:focus-visible {
        outline: 2px solid var(--theme-strong);
        outline-offset: -2px;
    }

    .accordion-item[open] > :not(summary) {
        background: var(--theme-softer);
    }

    .accordion-item[open] > p:first-of-type,
    .accordion-item[open] > ul:first-of-type {
        border-top: 1px solid var(--theme-border);
    }

.summary-meta {
    color: var(--theme-muted);
    font-size: 14px;
    font-weight: normal;
    text-align: right;
    white-space: nowrap;
}

.accordion-item p {
    color: var(--theme-text);
    line-height: 1.7;
    margin: 0;
    padding: 14px 20px;
}

    .accordion-item p:first-of-type {
        padding-top: 20px;
    }

    .accordion-item p:last-of-type {
        padding-bottom: 24px;
    }

.accordion-item > ul {
    color: var(--theme-text);
    line-height: 1.7;
    margin: 0;
    padding: 20px 32px 24px 44px;
}

.accordion-item > p + ul {
    padding-top: 0;
}

.contact-card {
    background: linear-gradient(135deg, var(--theme-soft) 0%, var(--theme-softer) 100%);
    border: 2px dashed var(--theme-light);
    border-radius: var(--radius-md);
    margin-top: 28px;
    padding: 24px 28px;
    text-align: center;
}

    .contact-card h2 {
        font-size: 22px;
        margin: 0 0 6px;
    }

        .contact-card h2::after {
            color: var(--theme-light);
            content: " \2661";
        }

    .contact-card p {
        color: var(--theme-muted);
        margin: 0 0 18px;
    }

    .contact-card .contact-address {
        font-size: 14px;
        margin: 16px 0 0;
    }

.copy-button {
    align-items: center;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    color: var(--theme-deep);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    gap: 6px;
    margin-left: 4px;
    padding: 4px 12px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

    .copy-button:hover,
    .copy-button:focus-visible {
        background: var(--theme-soft);
        border-color: var(--theme-accent);
    }

    .copy-button:focus-visible {
        outline: 2px solid var(--theme-strong);
        outline-offset: 2px;
    }

    .copy-button.copied {
        background: var(--theme-strong);
        border-color: var(--theme-strong);
        color: white;
    }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.contact-button {
    align-items: center;
    background: var(--theme-strong);
    border: 2px solid var(--theme-strong);
    border-radius: 999px;
    box-shadow: var(--theme-shadow);
    color: white;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    padding: 10px 22px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

    .contact-button:hover,
    .contact-button:focus-visible {
        background: var(--theme-deep);
        border-color: var(--theme-deep);
        color: white;
        transform: translateY(-2px);
    }

    .contact-button:focus-visible {
        outline: 2px solid var(--theme-light);
        outline-offset: 2px;
    }

.contact-button-outline {
    background: var(--theme-surface);
    box-shadow: none;
    color: var(--theme-deep);
}

    .contact-button-outline:hover,
    .contact-button-outline:focus-visible {
        background: var(--theme-strong);
        border-color: var(--theme-strong);
        color: white;
    }

.post-list {
    margin-top: 20px;
}

.post-preview {
    background: var(--theme-surface);
    border: 2px solid var(--theme-border);
    border-left: 6px solid var(--theme-accent);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
}

    .post-preview h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

.post-date {
    color: var(--theme-muted);
    font-size: 14px;
    margin-bottom: 0;
}

.gaming-intro {
    color: var(--theme-text);
    line-height: 1.6;
}

.game-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-top: 28px;
}

.game-card {
    background: var(--theme-surface);
    border: 2px solid var(--theme-border);
    border-radius: var(--radius-md);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

    .game-card:hover {
        box-shadow: 0 10px 26px rgb(139 92 246 / 28%);
        transform: translateY(-3px);
    }

.game-card img {
    display: block;
    height: auto;
    width: 100%;
}

.game-image-button {
    background: none;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    width: 100%;
}

.game-image-button:focus-visible {
    outline: 3px solid var(--theme-strong);
    outline-offset: -3px;
}

.image-dialog {
    background: var(--theme-bg);
    border: 2px solid var(--theme-border);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    color: var(--theme-text);
    max-height: 90vh;
    max-width: min(1000px, 92vw);
    padding: 20px;
}

.image-dialog::backdrop {
    background: rgb(46 31 74 / 65%);
}

.image-dialog-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.image-dialog-header h2 {
    font-size: 20px;
    margin: 0;
}

.image-dialog-subtitle {
    color: var(--theme-deep);
    margin: 6px 0 0;
}

.image-dialog-close {
    background: var(--theme-strong);
    border: 0;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 9px 18px;
}

.image-dialog-close:hover,
.image-dialog-close:focus-visible {
    background: var(--theme-deep);
}

.image-dialog-close:focus-visible {
    outline: 2px solid var(--theme-light);
    outline-offset: 2px;
}

.image-dialog-content {
    border-radius: var(--radius-sm);
    display: block;
    height: auto;
    max-height: calc(90vh - 86px);
    max-width: 100%;
}

.game-card-content {
    padding: 16px;
}

.game-card h2 {
    font-size: 20px;
    margin: 0;
}

.game-card p {
    color: var(--theme-muted);
    margin: 8px 0 0;
}

@media (max-width: 600px) {
    body {
        padding: 112px 24px 24px;
    }

    .side-nav {
        border-bottom: 2px solid var(--theme-border);
        border-right: 0;
        bottom: auto;
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        padding: 14px;
        width: 100%;
    }

    .nav-brand {
        flex: 0 0 48px;
        height: 40px;
        margin-bottom: 0;
        width: 48px;
    }

    .side-nav .nav-link {
        flex: 0 0 auto;
        padding: 11px 14px;
        white-space: nowrap;
    }

        .side-nav .nav-link:hover,
        .side-nav .nav-link:focus-visible {
            transform: translateY(-2px);
        }

    .accordion-item summary {
        align-items: flex-start;
        gap: 6px 16px;
        grid-template-columns: minmax(0, 1fr) 24px;
    }

    .accordion-item summary::after {
            grid-column: 2;
            grid-row: 1 / span 2;
            position: static;
    }

    .summary-meta {
        grid-column: 1;
        padding-right: 28px;
        text-align: left;
    }

    h1 {
        font-size: 38px;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-gallery {
        grid-row: 1;
        justify-self: center;
        max-width: 220px;
    }
}

a {
    color: var(--theme-deep);
}

    a:hover {
        color: var(--theme-strong);
    }
