/* FONT */
@font-face {
    font-family: "StarJedi";
    src: url("fonts/Starjedi.ttf") format("truetype");
}

/* GLOBAL */
:root {
    color-scheme: dark;
}

html {
    background-color: #05070c;
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    color: #f5f7ff;
    background-color: transparent;
}

body::after {
    content: "";
    position: fixed;
    inset: -240px;
    z-index: -1;
    pointer-events: none;
    background-image: url("images/Background.png");
    background-repeat: repeat;
    background-position: center;
    animation: background-drift 24s linear infinite;
    will-change: transform;
}

@keyframes background-drift {
    to {
        transform: translate3d(240px, 240px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
        will-change: auto;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body::before {
    content: "";
    position: fixed;
    left: 18px;
    top: 18px;
    width: clamp(90px, 11vw, 150px);
    aspect-ratio: 1 / 1;
    background: url("images/FinCharacter pointing a (Custom).png") center / contain no-repeat;
    filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.75));
    pointer-events: none;
    z-index: 4;
}

/* HEADERS */
h1, h2 {
    font-family: "StarJedi", sans-serif;
    color: #fff;
    text-align: center;
    text-shadow: 10px 10px 10px #000000;
    -webkit-text-stroke: 2px rgb(0, 0, 0);
}

h1 {
    font-size: 50px;
}

h2 {
    font-size: 30px;
    -webkit-text-stroke-width: 1px;
}

.subtitle {
    text-align: center;
    color: white;
    margin-top: -10px;
}

/* MENU SECTION */
.menu-section {
    text-align: center;
    margin-bottom: 20px;
}

select {
    font-size: 18px;
    padding: 8px 12px;
    width: min(420px, 90vw);
    max-width: 100%;
    color: #f5f7ff;
    background: rgba(8, 12, 24, 0.92);
    border: 1px solid rgba(88, 101, 242, 0.45);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

select:focus {
    outline: 2px solid rgba(88, 101, 242, 0.65);
    border-color: rgba(88, 101, 242, 0.85);
}

.site-search {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 60;
}

.site-search-trigger {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 14px;
    background: rgba(5, 8, 18, 0.92);
    color: #f5f7ff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.site-search-trigger svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.site-search-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 16px 24px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.site-search-overlay[hidden] {
    display: none !important;
}

.site-search-panel {
    width: min(680px, 100%);
    padding: 14px;
    border-radius: 18px;
    background: rgba(5, 8, 18, 0.97);
    border: 1px solid rgba(88, 101, 242, 0.42);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.site-search-panel-header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.site-search-form {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
}

.site-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(159, 176, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #f5f7ff;
}

.site-search-input:focus {
    outline: 2px solid rgba(88, 101, 242, 0.55);
}

.site-search-button,
.site-search-close {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.site-search-button {
    background: #5865f2;
}

.site-search-close {
    min-width: 44px;
    background: rgba(255, 255, 255, 0.08);
}

.site-search-results {
    margin-top: 10px;
    display: grid;
    gap: 6px;
    max-height: 50vh;
    overflow: auto;
}
.FAQ {
    text-align: center;
}

.site-search-result,
.site-search-empty {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #f5f7ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
}

.site-search-result:hover {
    background: rgba(88, 101, 242, 0.3);
}

body.search-open {
    overflow: hidden;
}

/* FLOATING LEGO ICON */
.floating-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.floating-icon img {
    border-radius: 20px;
}

.minecraft-gif {
    position: absolute;
    left: 0;
}

/* GALLERY / SLIDESHOW */
.gallery {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.slideshow-container {
    position: relative;
    width: min(1280px, 95vw);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 15px black;
    background: rgba(0, 0, 0, 0.65);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide img,
.slide iframe {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border: 0;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slide-arrow:hover {
    background: rgba(88, 101, 242, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.slide-arrow.left {
    left: 15px;
}

.slide-arrow.right {
    right: 15px;
}

a:hover img {
    opacity: 0.8;
}

/* DOWNLOAD PAGES */
.download-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.return-home {
    align-self: center;
    margin-top: 20px;
}
.FAQ {
        color: #dfe6ff;
    margin: 0 0 22px;
    font-size: 16px;
}

.FAQ a {
        color: #dfe6ff;
    text-decoration: none;
}

.FAQ:hover {
text-decoration: underline;
}

.download-card {
    max-width: 760px;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 15px black;
    padding: 32px;
    text-align: center;
}

.legal-page {
    min-height: 100vh;
    padding: 36px 20px;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.84);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.55);
}

.legal-card h1 {
    font-size: clamp(30px, 5vw, 46px);
    overflow-wrap: anywhere;
}

.legal-card h2 {
    margin: 28px 0 10px;
    text-align: left;
}

.legal-card p,
.legal-card li {
    color: #dfe6ff;
    line-height: 1.75;
}

.legal-card a {
    color: #9fb0ff;
}

.legal-updated {
    color: #b8c2e8 !important;
    text-align: center;
}

.legal-actions {
    margin-top: 28px;
    text-align: center;
}

.download-description {
    color: white;
    line-height: 1.6;
    margin: 15px 0 25px;
}

.instructions-section {
    margin: 24px 0 28px;
    padding: 20px 22px;
    text-align: left;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.instructions-section h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 24px;
}

.instructions-list {
    margin: 0;
    padding-left: 22px;
    color: #f5f7ff;
    line-height: 1.7;
}

.instructions-list li {
    margin-bottom: 10px;
}

.instructions-list a {
    color: #9fb0ff;
    font-weight: bold;
}

.instructions-list a:hover {
    color: #cfd7ff;
}

.download-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.download-actions > [hidden] {
    display: none !important;
}

.mod-links {
    display: grid;
    gap: 12px;
    margin: 22px 0 28px;
}

.mod-links .download-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.download-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    background: #5865f2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.download-button.secondary {
    background: #1b2838;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 24px 0 28px;
}

.choice-box {
    display: block;
    padding: 22px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.35);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.choice-box:hover {
    transform: translateY(-3px);
    background: rgba(88, 101, 242, 0.2);
}

.placeholder-card {
    max-width: 1100px;
}

.placeholder-card .download-description {
    white-space: pre-line;
    text-align: left;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 2.35;
    min-height: 180vh;
    margin: 18px 0 30px;
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.16);
    overflow-wrap: anywhere;
}

.broken-gif {
    display: block;
    margin: 0 auto 18px;
    max-width: min(420px, 90vw);
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.pdf-card {
    max-width: 1280px;
}

.pdf-placeholder {
    margin: 24px 0 28px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(159, 176, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.pdf-object {
    display: block;
    width: 100%;
    height: clamp(620px, 82vh, 980px);
    min-height: 620px;
    border: 0;
    border-radius: 12px;
    background: #0e1118;
}

.pdf-fallback {
    margin: 0;
    padding: 20px;
    color: #f5f7ff;
}

.pdf-fallback a {
    color: #9fb0ff;
}

.jumpscare-page {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.jumpscare-page::before {
    content: none;
    display: none;
}

.jumpscare-card {
    position: relative;
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    border-radius: 0;
    background: #000;
    overflow: hidden;
}

.jumpscare-card h1 {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: calc(100% - 32px);
    margin: 0;
}

.jumpscare-card .download-description {
    position: absolute;
    top: 88px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: calc(100% - 32px);
    margin: 0;
}

.jumpscare-card .download-actions {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2;
    width: auto;
}

.jumpscare-frame {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: #0c0f16;
    box-shadow: none;
}

.jumpscare-frame img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: fill;
}

/* HALL OF FAME */
.hall-page {
    min-height: 100vh;
    padding: 30px 20px 50px;
}

.hall-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.82);
    border-radius: 20px;
    box-shadow: 0 20px 15px black;
    padding: 32px;
}

.hall-wrapper .download-description {
    text-align: center;
}

.hall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.hall-item {
    display: block;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hall-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.4);
}

.hall-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #101010;
}

.hall-detail-card {
    max-width: 1100px;
}

.hall-image-view {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.hall-image-view img {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
}

.image-nav {
    white-space: nowrap;
    text-align: center;
}

.removal-actions {
    margin-top: 28px;
}

.removal-reason {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 4px 0;
    padding: 14px;
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 12px;
    color: #f5f7ff;
}

.removal-reason legend {
    padding: 0 6px;
    font-weight: bold;
}

.removal-reason label,
.captcha-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.explanation-field {
    display: grid;
    gap: 8px;
}

.explanation-field[hidden] {
    display: none !important;
}

.removal-explanation {
    width: 100%;
    min-height: 220px;
    padding: 12px 14px;
    border: 1px solid rgba(159, 176, 255, 0.4);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: #f5f7ff;
    font: inherit;
    line-height: 1.6;
    resize: vertical;
}

.removal-explanation:focus {
    outline: 2px solid rgba(88, 101, 242, 0.6);
}

.honeypot-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.comment-section {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.comment-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.comment-input {
    flex: 1 1 260px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(159, 176, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.comment-input:focus {
    outline: 2px solid rgba(88, 101, 242, 0.6);
    border-color: rgba(88, 101, 242, 0.8);
}

.comment-helper {
    margin: 10px 0 0;
    color: #cfd7ff;
    font-size: 14px;
}

.removal-form {
    display: grid;
    gap: 12px;
}

.removal-form label {
    color: #f5f7ff;
    font-weight: bold;
}

.removal-form .comment-input {
    width: 100%;
}

.removal-form .download-button {
    justify-self: start;
}

.removal-form .download-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}

.comment-item,
.empty-comment {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #f5f7ff;
    word-break: break-word;
}

/* SOCIAL LINKS */
.social-section {
    position: relative;
    margin-top: 40px;
    padding: 40px 20px 50px;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    text-align: center;
}

.social-links-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.social-text {
    outline: #000;
    color: white;
    margin: -5px 0 12px;
}

.contact-line {
    color: #dfe6ff;
    margin: 0 0 22px;
    font-size: 16px;
}

.contact-line a {
    color: #dfe6ff;
    text-decoration: none;
}

.contact-line a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hover-note {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.social-link.twitch:hover .hover-note {
    opacity: 1;
}

.social-link span {
    font-weight: bold;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.youtube:hover {
    background: #ff0033;
}

.social-link.discord:hover {
    background: #5865f2;
}

.social-link.steam:hover {
    background: #1b2838;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.social-link.twitch:hover {
    background: #9146ff;
}

.social-link.obs:hover {
    background: #3a3a3a;
}

#clonewars-quote {
  opacity: 0;
  transition: opacity 1s ease-in;
}

#clonewars-quote.show {
  opacity: 1;
}

@media (max-width: 900px) {
    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 24px;
    }

    .slideshow-container {
        width: min(96vw, 1280px);
        border-radius: 16px;
    }

    .slide-arrow {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .hall-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .floating-icon img {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 768px) {
    .site-search {
        top: 10px;
        right: 10px;
    }

    .site-search-trigger {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .site-search-overlay {
        padding: 10vh 10px 20px;
    }

    .site-search-panel-header,
    .site-search-form {
        flex-direction: column;
    }

    .site-search-close {
        align-self: flex-end;
    }

    .site-search-input,
    .site-search-button,
    .site-search-close {
        font-size: 14px;
        width: 100%;
    }

    body::before {
        width: 72px;
        left: 8px;
        bottom: 8px;
        opacity: 0.8;
    }

    h1 {
        font-size: 30px;
        line-height: 1.15;
        -webkit-text-stroke-width: 1px;
        padding: 0 8px;
    }

    h2 {
        font-size: 22px;
        -webkit-text-stroke-width: 1px;
    }

    .subtitle,
    .social-text,
    .contact-line,
    .download-description {
        padding-left: 8px;
        padding-right: 8px;
    }

    .gallery {
        padding: 12px 0;
    }

    .slide img,
    .slide iframe {
        object-fit: cover;
    }

    .slide-arrow.left {
        left: 8px;
    }

    .slide-arrow.right {
        right: 8px;
    }

    .download-page,
    .hall-page {
        padding: 18px 10px 28px;
    }

    .download-card,
    .hall-wrapper,
    .legal-card {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .instructions-section {
        padding: 16px;
    }

    .download-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .download-button {
        width: 100%;
        text-align: center;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .placeholder-card .download-description {
        min-height: 140vh;
        font-size: 16px;
        line-height: 2.05;
        padding: 16px 14px;
    }

    .pdf-object {
        height: 72vh;
        min-height: 420px;
    }

    .jumpscare-card h1 {
        top: 14px;
    }

    .jumpscare-card .download-description {
        top: 56px;
        font-size: 14px;
    }

    .jumpscare-card .download-actions {
        left: 12px;
        right: 12px;
        bottom: 12px;
        transform: none;
        width: auto;
    }

    .social-section {
        padding: 30px 12px 38px;
    }

    .social-links-wrap {
        flex-direction: column;
        gap: 14px;
    }

    .social-links {
        gap: 12px;
        max-width: 100%;
    }

    .social-link {
        width: min(100%, 260px);
        justify-content: center;
        margin: 0 auto;
    }

    .floating-icon {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 6px;
    }

    .hover-note {
        display: none;
    }

    .hall-grid {
        grid-template-columns: 1fr;
    }

    .hall-image-view {
        padding: 10px;
        grid-template-columns: 1fr 1fr;
    }

    .hall-image-view img {
        grid-row: 1;
        grid-column: 1 / -1;
        max-height: 55vh;
    }

    .comment-form {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        aspect-ratio: 4 / 3;
    }

    .slide-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .social-link {
        padding: 10px 14px;
        font-size: 14px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
    .iframe-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
    
    }
}