@import url('https://fonts.googleapis.com/css2?family=Warnes&family=Satisfy&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: #000 !important;
    color: #ffffff;
    overflow-x: hidden;
}

body.home-page {
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 0, 255, 0.14), transparent 22rem),
        radial-gradient(circle at 82% 25%, rgba(0, 255, 255, 0.12), transparent 24rem),
        #000 !important;
    font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
}

body.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
}

.home-shell {
    position: relative;
    z-index: 1;
    margin-left: 300px;
    width: calc(100% - 300px);
    min-height: 100vh;
    padding: 28px clamp(16px, 4vw, 52px) 70px;
}

.home-hero,
.portal-window,
.web-window,
.image-window,
.home-footer {
    width: min(100%, 980px);
    margin: 0 auto 24px;
    background: rgba(0, 0, 0, 0.92);
    border: 4px ridge #00ffff;
    box-shadow: 0 0 18px #ff00ff, 8px 8px 0 rgba(64, 0, 96, 0.75);
    padding: clamp(16px, 3vw, 28px);
    text-align: center;
    text-shadow: 2px 2px 2px #000;
}

.home-hero h1 {
    margin: 12px 0 10px;
    color: #7cff00;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(42px, 8vw, 88px);
    line-height: 0.95;
    letter-spacing: 2px;
    -webkit-text-stroke: 1px #001800;
    text-shadow: 4px 4px 0 #ff00ff, 0 0 14px #00ffff, 0 0 30px #7cff00;
}

.home-subtitle,
.portal-window p,
.web-window p,
.image-window p,
.home-footer p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.5;
}

.construction-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.construction-strip img {
    max-width: min(100%, 520px);
    height: auto;
    image-rendering: auto;
}

.portal-window {
    border-color: #ff00ff;
    box-shadow: 0 0 22px #00ffff, 8px 8px 0 rgba(0, 70, 90, 0.7);
}

.window-label {
    color: #ffff00 !important;
    font-family: "Courier New", monospace;
    font-size: 16px !important;
    letter-spacing: 1px;
    margin: 0 0 8px !important;
}

.portal-window h2,
.web-window h2,
.image-window h2,
.quick-links h2 {
    color: #00ffff;
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 44px);
    text-shadow: 3px 3px 0 #000, 0 0 12px #00ffff;
}

.big-3d-button {
    display: inline-block;
    margin: 14px auto;
    padding: 18px clamp(22px, 5vw, 52px);
    color: #ffffff !important;
    background: linear-gradient(180deg, #4b18d6 0%, #230072 100%);
    border: 4px outset #00ffff;
    box-shadow: 0 0 18px #7cff00, 0 8px 0 #130034, inset 0 0 12px rgba(255,255,255,0.35);
    font-family: "Courier New", monospace;
    font-size: clamp(20px, 3vw, 34px);
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portal-window .big-3d-button + .big-3d-button {
    margin-left: 10px;
}

.big-3d-button:hover {
    color: #7cff00 !important;
    border-color: #ffff00;
    transform: translateY(2px);
    box-shadow: 0 0 22px #ff00ff, 0 6px 0 #130034, inset 0 0 12px rgba(255,255,255,0.4);
}

.tiny-copy {
    color: #ffff00 !important;
    font-family: "Courier New", monospace;
    font-size: 14px !important;
}

.home-grid {
    width: min(100%, 980px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.home-grid .web-window {
    margin-bottom: 24px;
    height: auto;
}

.web-window strong {
    color: #ffff00;
}

.image-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: center;
}

.image-row a {
    display: block;
    background: #050013;
    border: 3px groove #ff00ff;
    padding: 10px;
    min-height: 150px;
}

.image-row img,
.home-footer img {
    max-width: 100%;
    height: auto;
}

.image-row img {
    max-height: 260px;
    object-fit: contain;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.button-grid a {
    display: block;
    padding: 12px;
    color: #ffffff !important;
    background: #1e0044;
    border: 3px outset #b8531c;
    box-shadow: inset 0 0 9px rgba(0,255,255,0.35);
    font-family: "Satisfy", cursive;
    font-size: 22px;
    text-decoration: underline;
}

.button-grid a:hover {
    color: #7cff00 !important;
    border-color: #7cff00;
    background: #350071;
}

.home-footer {
    color: #00ffff;
    font-family: "Courier New", monospace;
}

.home-footer img {
    width: 88px;
    height: 31px;
    margin: 3px;
}

.home-footer p {
    color: #00ffff;
    font-size: 15px;
}

@media (max-width: 900px) {
    .home-grid,
    .image-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .home-shell {
        margin-left: 0;
        width: 100%;
        padding: 14px 10px 50px;
    }

    .home-hero,
    .portal-window,
    .web-window,
    .image-window,
    .home-footer {
        box-shadow: 0 0 12px #ff00ff;
    }
}
