
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080d19;
    color: #ffffff;
    line-height: 1.7;
}

header {
    background: #0c1324;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #26354d;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 30px;
    color: #60a5fa;
    letter-spacing: 2px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

nav a {
    color: #dce5f5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #60a5fa;
}

section {
    padding: 80px 8%;
    scroll-margin-top: 140px;
}

section h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #ffffff;
}

section p {
    color: #b7c5da;
    font-size: 18px;
}

#home {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(
        ellipse at top,
        #243b75,
        #11152e 45%,
        #080d19 80%
    );
}

#home h1 {
    font-size: clamp(36px, 5vw, 64px);
    max-width: 1000px;
    line-height: 1.2;
    margin-bottom: 25px;
}

#home p {
    font-size: 22px;
    margin-bottom: 35px;
}

#home a {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 15px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

#home a:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px #6366f180;
}

#games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

#games h2 {
    grid-column: 1 / -1;
    text-align: center;
}

article {
    background: linear-gradient(145deg, #18243b, #101827);
    border: 1px solid #2c3e59;
    border-radius: 16px;
    padding: 35px;
    min-height: 220px;
    transition: transform 0.3s, border-color 0.3s;
}

article:hover {
    transform: translateY(-8px);
    border-color: #60a5fa;
}

article h3 {
    color: #60a5fa;
    font-size: 25px;
    margin-bottom: 15px;
}

#apps, #ai, #about, #contact {
    text-align: center;
    border-top: 1px solid #1e293b;
}

#apps, #about {
    background: #0d1526;
}

#ai {
    background: radial-gradient(
        ellipse at center,
        #1c2045,
        #080d19
    );
}

footer {
    text-align: center;
    padding: 30px;
    background: #050911;
    color: #94a3b8;
    border-top: 1px solid #26354d;
}

@media (max-width: 800px) {
    header {
        justify-content: center;
    }

    nav {
        justify-content: center;
        gap: 15px;
    }

    #games {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 6%;
        scroll-margin-top: 190px;
    }

    #home p {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

.hero-logo {
    width: 100%;
    max-width: 550px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 20px;
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.35));
}

@media (max-width: 800px) {
    .hero-logo {
        max-width: 320px;
    }
}


/* D&R Worlds - Digital Universe */

#home {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#home::before,
#home::after {
    content: "";
    position: absolute;
    inset: -310px -100px;
    pointer-events: none;
    z-index: -1;
}

#home::before {
    background-image:
        radial-gradient(2px 2px at 25px 35px, #ffffff 90%, transparent),
        radial-gradient(1px 1px at 85px 120px, #60a5fa 90%, transparent),
        radial-gradient(2px 2px at 160px 65px, #a78bfa 90%, transparent),
        radial-gradient(1px 1px at 210px 180px, #ffffff 90%, transparent),
        radial-gradient(2px 2px at 290px 240px, #38bdf8 90%, transparent);

    background-size: 340px 310px;
    opacity: 0.55;
    animation: drUniverseDrift 45s linear infinite;
}

#home::after {
    background-image:
        radial-gradient(2px 2px at 45px 90px, #60a5fa 90%, transparent),
        radial-gradient(1px 1px at 190px 150px, #ffffff 90%, transparent),
        radial-gradient(2px 2px at 320px 270px, #c084fc 90%, transparent);

    background-size: 430px 370px;
    opacity: 0.3;
    animation: drUniverseGlow 8s ease-in-out infinite alternate;
}

@keyframes drUniverseDrift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-310px);
    }
}

@keyframes drUniverseGlow {
    from {
        opacity: 0.15;
    }

    to {
        opacity: 0.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    #home::before,
    #home::after {
        animation: none;
    }
}


/* D&R Worlds - Game Presentation */

.game-card {
    overflow: hidden;
    text-align: center;
}

.game-cover {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: zoom-in;
    background: #080d19;
}

.game-category {
    color: #5eead4;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.game-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.game-gallery img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #334155;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.game-gallery img:hover {
    transform: scale(1.05);
    border-color: #60a5fa;
}

.game-status {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #5eead4;
    border-radius: 8px;
    color: #5eead4;
    background: #0c2630;
    font-weight: bold;
}

#games {
    align-items: start;
}


/* D&R Worlds - Image Viewer */

.image-lightbox {
    position: fixed;
    inset: 0;
    margin: auto;
    width: fit-content;
    max-width: 95vw;
    max-height: 95vh;
    padding: 15px;
    background: #080d19;
    border: 1px solid #334155;
    border-radius: 15px;
    overflow: auto;
}

.image-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.90);
}

.image-lightbox img {
    display: block;
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #101827;
    color: white;
    border: 1px solid #60a5fa;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}

.lightbox-close:hover {
    background: #2563eb;
}


/* D&R Worlds - Language Selector */

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #080d19;
}

.language-selector button {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.language-selector button.active {
    background: #2563eb;
    color: #ffffff;
}

.language-selector button:hover {
    color: #ffffff;
}

.language-selector button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

nav {
    align-items: center;
}


/* D&R Worlds - Contact */

.contact-email {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 25px;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #60a5fa;
    background: #101827;
    border: 1px solid #334155;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, border-color 0.3s;
}

.contact-email:hover {
    background: #18243b;
    border-color: #60a5fa;
}

/* Responsive and accessible refinements to the original visual identity. */
:root { color-scheme: dark; }
[hidden] { display: none !important; }
body { min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: #8fc1ff; text-underline-offset: .25em; }
a:hover { color: #c1dcff; }
:focus-visible { outline: 3px solid #5eead4; outline-offset: 5px; }
main:focus, section:focus { outline: none; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 20px; background: #080d19; border: 2px solid #5eead4; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { padding: 14px 5%; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; }
.brand { color: #60a5fa; font-size: clamp(1.25rem, 2.2vw, 1.875rem); letter-spacing: 2px; font-weight: bold; text-decoration: none; white-space: nowrap; }
#site-navigation { justify-content: flex-end; gap: clamp(14px, 1.6vw, 25px); }
#site-navigation a { padding-block: 10px; }
.header-controls { display: flex; align-items: center; gap: 10px; }
.language-selector button { min-width: 44px; min-height: 44px; font-size: .875rem; padding: 6px 10px; color: #b7c5da; }
.menu-toggle, .motion-toggle, .lightbox-controls button { border: 1px solid #55749d; border-radius: 8px; padding: 8px 14px; min-height: 44px; background: #101827; color: #dce5f5; }
.menu-toggle { display: none; }
section { padding-inline: max(6%, calc((100% - 1280px) / 2)); }
section h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
#home { padding-block: 52px 64px; }
#home h1 { font-size: clamp(2rem, 5vw, 4rem); text-wrap: balance; }
#home p { text-wrap: balance; }
.hero-logo { max-width: 550px; }
.motion-toggle { margin-top: 20px; font-size: .875rem; }
.motion-toggle:hover, .lightbox-controls button:hover, .menu-toggle:hover { background: #243b75; }
#home.motion-paused::before, #home.motion-paused::after { animation-play-state: paused; }
#games { gap: 24px; }
#games article { padding: clamp(20px, 2.4vw, 35px); min-width: 0; }
.game-card { overflow: visible; }
.cover-link { display: block; border-radius: 12px; }
.game-cover { height: auto; margin-bottom: 20px; }
.game-gallery img { display: block; height: auto; }
.gallery-trigger { display: block; border-radius: 8px; cursor: zoom-in; }
.game-card .archive-note { font-size: 1rem; line-height: 1.65; color: #c6d4e8; text-align: left; border-left: 2px solid #a78bfa; padding-left: 14px; }
.policy-link { display: block; margin-top: 24px; padding-block: 8px; font-size: .875rem; line-height: 1.6; }
.footer-nav { justify-content: center; gap: 12px 24px; margin-top: 12px; font-size: .875rem; }
.footer-nav a { padding-block: 8px; font-weight: normal; }
footer noscript p { margin: 20px auto 0; max-width: 65ch; }
.modal-open { overflow: hidden; }
.image-lightbox { width: min(680px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 16px; color: #fff; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lightbox-toolbar h2 { font-size: 1rem; }
.lightbox-close { position: static; flex-shrink: 0; width: 44px; height: 44px; }
.image-lightbox img { width: 100%; max-width: 100%; height: auto; max-height: calc(100dvh - 240px); min-height: 50px; border-radius: 6px; }
.lightbox-caption { margin-top: 12px; text-align: center; font-size: .875rem; color: #c6d4e8; }
.lightbox-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.lightbox-count { white-space: nowrap; font-size: .875rem; }
@media (max-width: 380px) {
    .lightbox-controls { gap: 8px; }
    .lightbox-controls button { font-size: .875rem; padding-inline: 8px; }
}
.policy-main { max-width: 900px; margin: auto; padding: 56px 6% 80px; }
.policy-main h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.25; margin: 20px 0; overflow-wrap: anywhere; }
.policy-main h2 { font-size: 1.4rem; margin-bottom: 12px; }
.policy-main p, .policy-main li { color: #c6d4e8; }
.policy-main section { padding: 24px 0; }
.policy-main ul { padding-left: 24px; }
.policy-main li { margin-block: 10px; }
.draft-notice { border: 1px solid #c4a5ff; border-left-width: 4px; background: #211a39; padding: 20px; border-radius: 10px; margin: 24px 0; }
.draft-notice strong { color: #eadbff; }
.draft-notice p { margin-top: 10px; }
.policy-list { list-style: none; padding: 0 !important; }
.policy-list a { display: block; padding: 14px 18px; border: 1px solid #334155; border-radius: 8px; background: #101827; }
.policy-main .contact-email { margin-top: 12px; }
.game-description { text-align: left; margin-block: 22px; }
.game-description p + p { margin-top: 16px; }
.game-description p:first-child { color: #5eead4; font-weight: bold; }
.legal-content { overflow-wrap: anywhere; }
.legal-content p { margin-block: 16px; }
.legal-content h2 { margin-top: 36px; }
.legal-content h3 { font-size: 1.15rem; color: #8fc1ff; margin: 30px 0 12px; }
.language-links { display: flex; gap: 6px; flex-wrap: nowrap; }
.language-links a { min-width: 44px; min-height: 44px; padding: 8px; text-align: center; border: 1px solid #55749d; border-radius: 6px; }
.language-links [aria-current="page"] { background: #2563eb; color: white; }
.legal-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid #334155; gap: 12px 24px; }
.legal-related a { padding-block: 8px; }
@media print {
    .site-header, .skip-link, .legal-related, footer { display: none; }
    body, .policy-main { color: #000; background: #fff; padding: 0; max-width: none; }
    .legal-content p, .legal-content li, .legal-content h3, .legal-content a { color: #000; }
}
@media (min-width: 801px) and (max-width: 1100px) {
    #games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .site-header { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 5%; }
    #site-navigation { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 6px 24px; }
    .header-controls { grid-column: 2; grid-row: 1; }
    .has-menu .menu-toggle { display: block; }
    .has-menu #site-navigation { display: none; }
    .has-menu .menu-open #site-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 55dvh; overflow-y: auto; }
    section { scroll-margin-top: 100px; }
}
@media (max-width: 800px) {
    .hero-logo { max-width: 320px; margin-bottom: 24px; }
    #home { padding-block: 36px 48px; }
    #games { grid-template-columns: 1fr; }
    #games article { width: 100%; max-width: 520px; margin-inline: auto; padding: 24px; }
    .game-gallery { max-width: 300px; margin-inline: auto; }
    .game-cover { max-height: 360px; }
}
@media (max-width: 480px) {
    .site-header { padding: 10px 5%; gap: 6px; }
    .brand { letter-spacing: 1px; }
    .header-controls { gap: 6px; }
    .language-selector { padding: 2px; gap: 0; }
    .language-selector button { padding: 4px; }
    .menu-toggle { padding-inline: 8px; }
    .has-menu .menu-open #site-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #home .primary-button { padding: 14px 22px; }
    section { padding-block: 48px; }
    .contact-email { padding: 12px 16px; font-size: .9375rem; }
}
@media (max-width: 359px) {
    .site-header { grid-template-columns: 1fr; }
    .brand { text-align: center; }
    .header-controls { grid-column: 1; grid-row: 2; justify-content: center; }
    #site-navigation { grid-row: 3; }
    section { scroll-margin-top: 140px; }
}
@media (hover: none) { article:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    article:hover, #home a:hover, .game-gallery img:hover { transform: none; }
}




