:root {
    --bg-color: #FFFCF7;
    --primary: #FFC4D6;
    --secondary: #CCD5FF;
    --accent: #FFE5B4;
    --text-color: #4A4A4A;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(226, 198, 255, 0.2);
    /* --- Max Width Variable --- */
    --max-width: 1200px; 
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Animated background blobs */
.bg-decoration {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    animation: float-blob 20s ease-in-out infinite;
}

.blob-1 {
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.blob-3 {
    background: var(--accent);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px dashed var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

ul {
    list-style: none;
}

/* Navigation with glassmorphism */
nav {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	/* this line is for Safari sticky support, I didn't double sticky it for funsies */
	position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* --- Nav Container to constrain width --- */
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    position: relative;
    cursor: pointer;
}

.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    position: relative;
    font-weight: 600;
}

/* Underline effect for standard links */
.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s;
}

.nav-links a:hover::before {
    width: 100%;
}

/* --- Button Styles --- */
.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 196, 214, 0.3);
    position: relative;
    overflow: hidden; 
    display: inline-block;
    z-index: 1;
}

.nav-links a.btn-nav::before {
    content: none;
}

/* Shine Effect */
.btn-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: -1;
}

.btn-nav:hover::after {
    left: 150%;
    transition: left 0.5s ease-in-out;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 196, 214, 0.4);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem; 
    max-width: var(--max-width);
    margin: 0 auto; 
    min-height: 80vh;
    position: relative;
}

.hero-content {
    max-width: 500px;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #5d5dff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(204, 213, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFC4D6, #CCD5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    position: relative;
	display: inline;
	background: linear-gradient(135deg, #FFC4D6, #CCD5FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 12px;
    background: var(--primary);
    opacity: 0.3;
    bottom: 8px;
    left: 0;
    z-index: -1;
    animation: highlight-expand 1s ease-out forwards;
}

@keyframes highlight-expand {
    from { width: 0; }
    to { width: 100%; }
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #777;
}

.socials {
    font-size: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.socials a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.socials a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: translateY(-5px) rotate(5deg);
}

/* Hero Image */
.hero-image {
    animation: slideInRight 0.8s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-image img {
    width: 300px;
    height: 300px; 
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Sections */
.container {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 10px auto 0;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.card:hover::before {
    opacity: 0.05;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(226, 198, 255, 0.3);
}

.card > * {
    position: relative;
    z-index: 1;
}

/* Skills */
.skills {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skills span {
    background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.skills span:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: scale(1.1);
}

/* Project Cards */
.project-card {
    text-align: center;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s;
}

.card:hover .icon-box {
    transform: scale(1.2) rotate(10deg);
}

.btn-small {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255, 196, 214, 0.1);
    transition: all 0.3s;
}

.btn-small:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

/* Blog Posts */
.blog-post {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 30px;
}

.blog-post::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.blog-post .date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Blog Button Style */
.btn-blog {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255, 196, 214, 0.1);
    transition: all 0.3s;
}

.btn-blog:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

/* Contact Card */
.contact-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 196, 214, 0.1), rgba(204, 213, 255, 0.1));
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    /* --- NEW RESETS FOR <button> --- */
    background: transparent;
    border: none;
    padding: 0;
}

/* Accessibility bonus: A nice focus ring for keyboard users */
.hamburger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 6px;
    border-radius: 4px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
    border-radius: 3px;
}

/* Page specific styles for Privacy Policy */
.policy-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.policy-content p, .policy-content ul {
    margin-bottom: 1rem;
    color: #666;
}

.policy-content ul {
    padding-left: 20px;
    list-style: disc;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 200;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        background-color: var(--white);
        width: 100%;
        height: 100vh;
        transition: 0.3s ease-in-out;
        z-index: 100;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 2rem;
        font-weight: 600;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-content {
        margin-top: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .socials {
        justify-content: center;
    }

    .bg-decoration {
        width: 250px;
        height: 250px;
    }
	
	
	
	/* --- Blog Post Mobile Fixes --- */
    
    /* Reduce the outer container padding ONLY on blog pages */
    .blog-post-page .container {
        padding: 2rem 1rem; 
    }

    /* Override the 3rem inline padding on the article card ONLY on blog pages */
    .blog-post-page .container article {
        padding: 1.5rem !important; 
        border-radius: 15px !important; 
    }

    /* Scale down the large inline headings for mobile readability ONLY on blog pages */
    .blog-post-page .container article h1 {
        font-size: 1.8rem !important; 
    }

    .blog-post-page .container article h2 {
        font-size: 1.5rem !important;
        margin-top: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
}










/* certificates */
.cert-card {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    /* Clip the background to the text (icon) shape */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Ensure it displays correctly */
    display: inline-block;
}

/* Mobile fix: Stack the button on small screens */
@media (max-width: 600px) {
    .cert-card {
        flex-direction: column;
        text-align: center;
    }
    .cert-content {
        flex-direction: column;
    }
}









/* --- Blog images --- */
.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Slight zoom effect on hover */
.card:hover .blog-image {
    transform: scale(1.02);
    transition: 0.8s;
}



/* --- Image Link Wrapper Fix (Corrected) --- */
.card > a[aria-hidden="true"] {
    display: block;
    border-radius: 12px;
    overflow: hidden; /* Keeps the zoom hover effect cleanly contained */
    margin-bottom: 1rem;
    /* Move the shadow HERE so it doesn't get clipped */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

/* Remove the bottom margin and shadow from the images themselves */
.card > a[aria-hidden="true"] .blog-image,
.card > a[aria-hidden="true"] .project-image {
    margin-bottom: 0;
    display: block;
    box-shadow: none; 
}




/* --- Replace the existing .grid class with this --- */

.grid {
    display: grid;
    gap: 2rem;
    /* Default: 1 column for mobile phones */
    grid-template-columns: 1fr;
}

/* Tablet screens (approx 768px and up): 2 Columns */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop screens (approx 1024px and up): 3 Columns MAX */
@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}





/* --- Project Images Styling --- */
.project-image {
    width: 100%;
    height: 200px; /* Keeps images uniform height */
    object-fit: cover; /* Ensures image covers the area without stretching */
    object-position: top center; /* Focuses on the top of the webpage screenshot */
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.5s ease; /* Smooth hover transition */
}

/* Hover Effect: Zoom in slightly instead of rotating */
.project-card:hover .project-image {
    transform: scale(1.03);
}

/* Adjust card padding slightly to accommodate images better */
.project-card {
    padding-top: 1.5rem; 
}




#games .project-image {
    height: 216px;
}








/* --- Hero Speech Bubble (Glassmorphism Version) --- */
.speech-bubble {
    position: absolute;
    right: 100%; 
    top: 40px;
    margin-right: 25px;
    
    /* GLASS EFFECT START */
    background: rgba(255, 255, 255, 0.7); /* 70% opacity like the nav */
    backdrop-filter: blur(10px); /* Blurs the background behind it */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border for definition */
    /* GLASS EFFECT END */

    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Softer shadow */
    z-index: 10;
    width: max-content;
    max-width: 220px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    
    opacity: 0;
    animation: 
        pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s forwards, 
        float-bubble 3s ease-in-out infinite 1.6s;
}

/* The "Tail" Triangle */
.speech-bubble::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent; 
    /* Match the RGBA color of the bubble background */
    border-left: 12px solid rgba(255, 255, 255, 0.7); 
    
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.05));
}

/* Text Styles */
.speech-bubble p {
    margin: 0;
    color: var(--text-color);
}

.speech-bubble a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 4px;
}

.speech-bubble a:hover {
    color: #ff8fa3;
    text-decoration: underline;
}

/* --- Animations --- */
@keyframes pop-in {
    0% { opacity: 0; transform: scale(0.5) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes float-bubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Mobile Responsiveness --- */
/* Updated to 1068px */
@media (max-width: 1068px) {
    .speech-bubble {
        right: auto;
        margin-right: 0;
        left: 50%; 
        top: -75px; 
        
        animation: 
            pop-in-mobile 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s forwards, 
            float-bubble-mobile 3s ease-in-out infinite 1.6s;
    }

    .speech-bubble::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -10px;
        transform: translateX(-50%);
        
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        /* Match RGBA color */
        border-top: 12px solid rgba(255, 255, 255, 0.7); 
        border-bottom: none;
        filter: none;
    }

    @keyframes pop-in-mobile {
        0% { opacity: 0; transform: translateX(-50%) scale(0.5) translateY(20px); }
        100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
    }

    @keyframes float-bubble-mobile {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(-8px); }
    }
}






/* Custom Looping Video Player */
.video-container {
    position: relative;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #000; /* Prevents white flash on load */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.fullscreen-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(4px); /* Adds a modern frosted glass effect */
}

.video-container:hover .fullscreen-btn {
    opacity: 1; /* Shows on hover */
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* YunaData pixel world. Homepage-only styles; the original shared CSS is retained above. */
.yd-home {
  --yd-ink: #44354e;
  --yd-muted: #665b70;
  --yd-paper: #fff9ec;
  --yd-lilac: #e3d4f2;
  --yd-pink: #f4d5e0;
  --yd-peach: #f7e0c9;
  --yd-mint: #d7e7ce;
  --yd-plum: #705087;
  --yd-edge: #725b80;
  --yd-pixel: 'Pixelify Sans', 'Courier New', monospace;
  color: var(--yd-ink);
  background-color: #f6f1f7;
  background-image: radial-gradient(#d8cadd 1px, transparent 1px);
  background-size: 12px 12px;
  font: 400 16px/1.75 'IBM Plex Sans', 'Segoe UI', sans-serif;
}
.yd-home [hidden] { display: none !important; }
.yd-home *, .yd-home *::before, .yd-home *::after { box-sizing: border-box; }
.yd-home ::selection { background: #cfb5e4; color: #30223c; }
.yd-home :is(h1, h2, h3, h4) {
  color: var(--yd-ink); background: none; -webkit-text-fill-color: currentColor;
  left: auto; transform: none; text-align: left; display: block; margin: 0;
  font-family: var(--yd-pixel); font-weight: 600; letter-spacing: -.025em; line-height: 1.15;
}
.yd-home :is(h1,h2)::after { content: none; }
.yd-home h2 { font-size: clamp(2.25rem, 4vw, 3.3rem); }
.yd-home h3 { font-size: 1.6rem; }
.yd-home em { font-style: normal; color: var(--yd-plum); }
.yd-home p { margin: 0; }
.yd-home :is(button,input) { font: inherit; }
.yd-home button { color: inherit; cursor: pointer; }
.yd-home a { color: inherit; text-decoration: none; transition: color .12s, background-color .12s; }
.yd-home img { display: block; max-width: 100%; }
.yd-home :is(a,button,summary):focus-visible { outline: 3px solid #583177; outline-offset: 5px; border-radius: 0; }
.yd-home :is(section[id],main[id]) { scroll-margin-top: 98px; }
.yd-home svg { shape-rendering: crispEdges; }
.yd-wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.yd-section { padding-block: 88px; }
.yd-home .yd-eyebrow { font: 500 .87rem/1.5 var(--yd-pixel); letter-spacing: .035em; margin-bottom: 18px; }
.yd-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.yd-skip { position: fixed; top: 10px; left: 18px; z-index: 300; background: var(--yd-ink); color: white !important; padding: 12px 18px; transform: translateY(-160%); }
.yd-skip:focus { transform: translateY(0); }

.yd-home .yd-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 11px 16px; min-height: 48px; border: 2px solid var(--yd-edge); font: 500 1.05rem/1.4 var(--yd-pixel); box-shadow: 4px 4px 0 var(--yd-edge); transition: transform .12s, box-shadow .12s, background-color .12s; }
.yd-home .yd-button-dark { color: #fff9ec; background: #76508d; }
.yd-home .yd-button-light { color: var(--yd-ink); background: #f7e5ad; }
.yd-home .yd-button:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--yd-edge); }
.yd-home .yd-button:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--yd-edge); }
.yd-home .yd-button-dark:hover { background: #654079; }
.yd-home .yd-button-light:hover { background: #f5d88e; }
.yd-home .yd-text-link { display: inline-flex; gap: 12px; align-items: center; font: 500 1rem/1.6 var(--yd-pixel); padding-block: 9px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.yd-home .yd-text-link:hover { color: #854a93; }

/* Quest log: project entries rather than a generic card gallery. */
.yd-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 30px; }
.yd-section-heading .yd-eyebrow { margin-bottom: 10px; }
.yd-section-heading > p { color: var(--yd-muted); font-size: .9rem; max-width: 450px; }
.yd-heading-cursor { color: #9c78b0; }
.yd-work-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.yd-filters { display: flex; gap: 9px; flex-wrap: wrap; }
.yd-filters button { border: 2px solid var(--yd-edge); padding: 9px 15px; min-height: 44px; background: #fff9ec; font: 500 .94rem/1.4 var(--yd-pixel); box-shadow: 2px 2px 0 #c5b0ce; }
.yd-filters button[aria-pressed="true"] { background: #725185; color: #fff9ec; box-shadow: none; }
.yd-filters button:hover:not([aria-pressed="true"]) { background: #e5d5ef; }
.yd-filters button span { margin-left: 8px; font-size: .75rem; }
.yd-filter-status { font: 500 .8rem/1.5 var(--yd-pixel); color: var(--yd-muted); }
.yd-project-grid { display: grid; gap: 23px; }
.yd-project { display: grid; grid-template-columns: 310px 1fr; column-gap: 30px; padding: 21px; border: 2px solid var(--yd-edge); background: #fff9ef; box-shadow: 5px 5px 0 #cdb8d5; min-width: 0; }
.yd-project-cover { grid-column: 1; grid-row: 1/5; display: flex; align-items: center; position: relative; min-width: 0; padding: 40px 15px 16px; border: 2px solid #ac92b7; }
.yd-cover-lilac { background: #e0d0ef; }
.yd-cover-peach { background: #f0d3c6; }
.yd-cover-mint { background: #d4e3c9; }
.yd-browser { background: #fff9ec; border: 2px solid #786381; width: 100%; box-shadow: 3px 3px 0 #ae95bb; }
.yd-browser-bar { display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; background: #ece1f2; border-bottom: 1px solid #ac92b7; }
.yd-browser-bar > span { height: 5px; width: 5px; background: #a489ad; }
.yd-browser-bar small { font: 400 .6rem/1 var(--yd-pixel); margin-left: auto; color: #5f4d69; }
.yd-browser img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: top center; }
.yd-cover-number { position: absolute; top: 10px; left: 13px; font: 500 .8rem/1.4 var(--yd-pixel); }
.yd-project-meta { display: flex; align-items: center; justify-content: space-between; grid-column: 2; color: #715880; font: 500 .75rem/1.5 var(--yd-pixel); margin-bottom: 8px; }
.yd-project-meta > span:last-child { font-size: 1.25rem; }
.yd-home .yd-project h3 { grid-column: 2; font-size: 1.9rem; margin-bottom: 12px; }
.yd-project h3 a:hover { color: #8b569c; }
.yd-project > p { grid-column: 2; font-size: .95rem; line-height: 1.8; color: var(--yd-muted); max-width: 660px; }
.yd-project > .yd-text-link { grid-column: 2; margin-top: 12px; justify-self: start; font-size: 1rem; }

/* Player profile and inventory */
.yd-about-section { background: #e9dfef; border-block: 3px solid #bba4c7; position: relative; }
.yd-about-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 62px; row-gap: 40px; }
.yd-about-copy h2 { margin-bottom: 27px; }
.yd-player-card { display: flex; align-items: center; gap: 20px; background: #fff9ec; border: 2px solid var(--yd-edge); padding: 12px; box-shadow: 4px 4px 0 #c3a8cf; margin: 25px 0 30px; }
.yd-player-card img { width: 104px; height: 104px; object-fit: cover; border: 2px solid #9c80aa; flex-shrink: 0; }
.yd-player-card > div { display: flex; flex-direction: column; gap: 7px; font: 500 .75rem/1.3 var(--yd-pixel); }
.yd-player-card .yd-player-name { font-size: 1.25rem; margin-bottom: 1px; }
.yd-player-hearts { color: #a85078; font-size: .95rem; }
.yd-player-hearts small { color: #6f5c7b; font-size: .65rem; margin-left: 5px; }
.yd-about-copy > p:not(.yd-eyebrow) { color: var(--yd-muted); font-size: .96rem; line-height: 1.9; margin-top: 18px; }
.yd-about-copy strong { color: var(--yd-ink); font-weight: 600; }
.yd-language-note { font-size: .81rem; margin-top: 24px; }
.yd-language-note > span { font: 500 1.3rem/1 var(--yd-pixel); padding-right: 6px; }
.yd-about-aside { padding-top: 4px; min-width: 0; }
.yd-journey { background: #fff9ec; border: 2px solid var(--yd-edge); box-shadow: 5px 5px 0 #bfa4cc; }
.yd-journey-title { display: flex; justify-content: space-between; gap: 20px; background: #d5c2e4; border-bottom: 2px solid var(--yd-edge); padding: 10px 18px; font: 500 .9rem/1.4 var(--yd-pixel); }
.yd-journey ol { list-style: none; padding: 26px 22px; margin: 0; }
.yd-journey li { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 28px; position: relative; }
.yd-journey li:last-child { padding-bottom: 0; }
.yd-journey li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 38px; height: calc(100% - 40px); border-left: 2px dotted #ac92b7; }
.yd-step-number { display: grid; place-items: center; width: 36px; height: 34px; flex-shrink: 0; background: #e4d4f0; border: 2px solid #9676a7; font: 500 1rem/1 var(--yd-pixel); }
.yd-journey li:nth-child(2) .yd-step-number { background: #f5dfc5; }
.yd-journey li:nth-child(3) .yd-step-number { background: #dce9cb; }
.yd-home .yd-journey h3 { font-size: 1.25rem; margin: 2px 0 5px; }
.yd-journey p { font-size: .83rem; line-height: 1.65; color: var(--yd-muted); }
.yd-journey-sticker { display: block; border-top: 1px dashed #c5afd1; padding: 10px 20px; font: 400 .8rem/1.4 var(--yd-pixel); color: #745784; background: #f2e5ec; }
.yd-inventory { background: #f5e9d4; border: 2px solid #a184a7; padding: 17px 20px 20px; margin-top: 25px; box-shadow: 4px 4px 0 #c6aacf; }
.yd-inventory-title { font: 500 .9rem/1.5 var(--yd-pixel); margin-bottom: 12px !important; }
.yd-skills-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.yd-skills-list span { display: flex; align-items: center; justify-content: center; min-height: 47px; padding: 7px; border: 2px solid #b19bb6; box-shadow: inset 2px 2px 0 #fff9ec; background: #ede0f2; text-align: center; font-size: .73rem; font-weight: 500; line-height: 1.5; }
.yd-skills-list span:nth-child(3n+2) { background: #e0e9cf; }
.yd-skills-list span:nth-child(3n) { background: #f1d7df; }
.yd-certificates { grid-column: 1/-1; background: #fff9ec; border: 2px solid var(--yd-edge); box-shadow: 4px 4px 0 #c3a8cf; }
.yd-certificates summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 22px; font: 500 1.2rem/1.5 var(--yd-pixel); }
.yd-certificates summary::-webkit-details-marker { display: none; }
.yd-certificates summary > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.yd-certificate-star { color: #8d6d32; font-size: 1.6rem; }
.yd-certificates summary small { color: var(--yd-muted); font: 400 .8rem/1.5 'IBM Plex Sans', sans-serif; margin-left: 15px; }
.yd-details-plus { font: 500 1.6rem/1 var(--yd-pixel); }
.yd-certificates[open] .yd-details-plus { transform: rotate(45deg); }
.yd-certificate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 8px 22px 23px; }
.yd-certificate-grid article { background: #f3e8f4; border: 1px solid #b69ec2; padding: 22px; }
.yd-certificate-grid .yd-eyebrow { font-size: .75rem; margin: 0 0 7px; }
.yd-home .yd-certificate-grid h3 { font-size: 1.5rem; }
.yd-certificate-grid p { font-size: .88rem; color: var(--yd-muted); margin: 10px 0; }
.yd-certificate-grid article > div { display: flex; gap: 20px; flex-wrap: wrap; }
.yd-certificate-grid a { font-size: .83rem; text-decoration: underline; text-underline-offset: 4px; padding-block: 8px; }

/* Arcade: original 400 × 299 cover art is always fully visible and clickable. */
.yd-playground { background: #f4dce7; border: 3px solid var(--yd-edge); box-shadow: 7px 7px 0 #c5a3c2; padding: 35px 30px 26px; position: relative; }
.yd-playground::before { content: ''; position: absolute; top: -3px; left: 18px; right: 18px; height: 6px; background: #fff2d5; border-inline: 3px solid var(--yd-edge); pointer-events: none; }
.yd-playground .yd-section-heading { gap: 35px; }
.yd-playground .yd-eyebrow { font-size: .79rem; }
.yd-playground h2 { font-size: clamp(2.7rem, 4.4vw, 3.6rem); color: #704c7e; text-shadow: 3px 3px 0 #ecc3d7; }
.yd-play-intro { flex: 0 1 365px; }
.yd-play-intro > p:first-child { font-size: .93rem; color: var(--yd-muted); line-height: 1.8; }
.yd-home .yd-surprise { border: 2px solid var(--yd-edge); background: #fff0bd; padding: 9px 13px; margin-top: 17px; text-decoration: none; box-shadow: 3px 3px 0 #ba97b5; font-size: .96rem; }
.yd-surprise:hover { background: #f9e1a0; }
.yd-game-status { font-size: .78rem; min-height: 1.8em; color: #674278; margin-top: 12px !important; }
.yd-games-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; align-items: start; }
.yd-game { width: 100%; max-width: 404px; justify-self: center; min-width: 0; background: #fff9ed; border: 2px solid var(--yd-edge); box-shadow: 4px 4px 0 #c29aba; }
.yd-game-slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; background: #dec7e7; border-bottom: 2px solid var(--yd-edge); font: 500 .73rem/1.4 var(--yd-pixel); }
.yd-game:nth-child(2) .yd-game-slot { background: #d5e4c9; }
.yd-game:nth-child(3) .yd-game-slot { background: #f5e3b3; }
.yd-pick-label { font-size: .64rem; }
.yd-home .yd-game-image { display: block; width: 100%; max-width: 400px; margin-inline: auto; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; line-height: 0; }
.yd-home .yd-game-image img { display: block; width: 100%; max-width: 400px; height: auto; aspect-ratio: 400 / 299; object-fit: contain; object-position: center; border-radius: 0; transform: none; transition: none; }
.yd-home .yd-game-image:focus-visible { position: relative; outline: 3px dashed #492d5c; outline-offset: 5px; z-index: 1; }
.yd-game-info { padding: 18px 20px 17px; border-top: 2px solid var(--yd-edge); }
.yd-game-info .yd-eyebrow { font-size: .68rem; color: #6b5474; margin-bottom: 8px; }
.yd-home .yd-game h3 { font-size: 1.6rem; line-height: 1.15; }
.yd-game-info > p:not(.yd-cover-hint) { font-size: .88rem; color: var(--yd-muted); line-height: 1.8; margin-top: 11px; }
.yd-game-info .yd-cover-hint { border-top: 1px dashed #c6accd; padding-top: 12px; margin-top: 16px; font: 500 .82rem/1.4 var(--yd-pixel); }
.yd-cover-hint > span { margin-right: 8px; }
.yd-game.is-picked { border-color: #705087; box-shadow: 0 0 0 3px #fff0b8, 0 0 0 6px #8d6c94, 6px 6px 0 6px #c7a0bd; }
.yd-game.is-picked .yd-game-slot { background: #725084; color: #fff9ec; }
.yd-game.is-picked .yd-pick-label { font-weight: 600; }
.yd-behind-play { display: flex; align-items: center; gap: 17px; margin-top: 28px; padding-top: 24px; border-top: 2px dashed #b796ba; }
.yd-chart-icon { display: grid; place-items: center; width: 50px; height: 48px; flex-shrink: 0; border: 2px solid #a882b2; background: #e4cbed; color: #76508c; font-size: 1.4rem; letter-spacing: 2px; }
.yd-home .yd-behind-play h3 { font-size: 1.3rem; }
.yd-behind-play p { font-size: .82rem; color: var(--yd-muted); margin-top: 4px; }
.yd-behind-play .yd-text-link { margin-left: auto; flex-shrink: 0; }

/* Adventure journal */
.yd-journal { padding-top: 0; }
.yd-journal .yd-section-heading { margin-bottom: 27px; }
.yd-journal-list { background: #fff9ec; border: 2px solid var(--yd-edge); box-shadow: 5px 5px 0 #c9b2d2; padding-inline: 25px; }
.yd-journal-entry { display: grid; grid-template-columns: 155px minmax(0,1fr) 125px; align-items: center; gap: 28px; padding-block: 25px; }
.yd-journal-entry + .yd-journal-entry { border-top: 2px dashed #c8b1d3; }
.yd-entry-date { font: 500 .8rem/1.4 var(--yd-pixel); color: #6e557d; align-self: start; padding-top: 3px; }
.yd-entry-date time { display: block; margin-bottom: 11px; }
.yd-entry-date > span { font-size: .66rem; color: var(--yd-muted); }
.yd-home .yd-entry-copy h3 { font-size: 1.55rem; line-height: 1.25; }
.yd-entry-copy h3 a:hover { color: #92598f; }
.yd-entry-copy h3 span { font: 400 1rem/1 sans-serif; display: inline-block; margin-left: 9px; }
.yd-entry-copy p { color: var(--yd-muted); font-size: .91rem; margin-top: 10px; }
.yd-journal-entry > img { width: 125px; height: 88px; object-fit: cover; border: 2px solid #aa8db7; box-shadow: 3px 3px 0 #d6bddf; }

/* A new quest begins in the inbox. */
.yd-contact-section { padding-top: 0; padding-bottom: 65px; }
.yd-contact { border: 3px solid var(--yd-edge); background: #e3ecd8; box-shadow: 7px 7px 0 #b4c49e; padding: 43px 53px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.yd-contact h2 { font-size: clamp(2.8rem, 4.6vw, 4rem); color: #4f654a; text-shadow: 3px 3px 0 #d4dfbf; line-height: 1.05; }
.yd-contact > div > p:not(.yd-eyebrow):not(.yd-copy-status) { margin-top: 23px; color: #53614c; font-size: .97rem; line-height: 1.8; }
.yd-contact-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.yd-envelope { width: 90px; height: 67px; margin-bottom: 23px; filter: drop-shadow(4px 4px 0 #c9b9d0); }
.yd-contact-actions .yd-button { min-width: 224px; }
.yd-email-row { display: flex; align-items: center; gap: 7px; margin-top: 18px; }
.yd-email-row > a { font-size: .88rem; text-decoration: underline; text-underline-offset: 4px; }
.yd-email-row button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.yd-email-row button:hover { background: #cddbbf; }
.yd-copy-status { min-height: 1.8em; font-size: .74rem; color: #4d6346; max-width: 300px; text-align: center; }
.yd-contact-socials { display: flex; gap: 26px; margin-top: 14px; font: 500 .94rem/1.4 var(--yd-pixel); }
.yd-contact-socials a { padding-block: 9px; }
.yd-contact-socials a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* The room is the homepage; content opens in accessible game windows. */
.yd-home { background: #e9e3f3; background-image: none; line-height: 1.65; }
.yd-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.yd-home .yd-room-header { display: flex; gap: 24px; align-items: center; width: min(1480px,calc(100% - 48px)); min-height: 68px; margin: auto; position: relative; z-index: 10; }
.yd-home .yd-room-brand { display: inline-flex; align-items: center; gap: 11px; font: 600 1.65rem/1 var(--yd-pixel); white-space: nowrap; }
.yd-room-brand svg { color: #9a527a; flex: none; }
.yd-brand-world { font-size: .9rem; color: #785b8b; }
.yd-room-availability { margin-left: auto; font-size: .74rem; color: #5b4d68; }
.yd-room-availability > span { color: #537849; font-size: .6rem; margin-right: 4px; }
.yd-room-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.yd-home .yd-ui-button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 44px; padding: 7px 12px; font: 500 .87rem/1.4 var(--yd-pixel); border: 2px solid #91779f; background: #f7f0fa; box-shadow: 2px 2px 0 #c6b5d4; }
.yd-home .yd-ui-button:hover { background: #fff8e8; border-color: #725480; }
.yd-home .yd-ui-button:active { transform: translate(2px,2px); box-shadow: none; }
.yd-home .yd-ui-button[aria-pressed="true"] { background: #e1d0ed; }
.yd-home .yd-help-button { min-width: 44px; font-size: 1.25rem; padding-inline: 8px; }
.yd-room-world { padding: 1px 24px 0; }
.yd-room-heading { width: min(100%,calc((100svh - 260px) * 1.5)); max-width: 1360px; min-width: min(100%,600px); margin: 0 auto 12px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.yd-home .yd-room-heading h1 { font-size: clamp(1.3rem,2.15vw,1.9rem); line-height: 1.2; }
.yd-room-heading h1 > span { color: #a57642; font-size: 1rem; vertical-align: middle; }
.yd-room-heading p { font-size: .72rem; color: #665573; margin-top: 5px; }
.yd-home .yd-room-progress { font: 500 .78rem/1.5 var(--yd-pixel); white-space: nowrap; margin-bottom: 2px; }
.yd-room-progress > span { color: #785090; font-size: 1.2rem; }
.yd-room-stage { position: relative; isolation: isolate; width: min(100%,calc((100svh - 260px) * 1.5)); max-width: 1360px; min-width: min(100%,600px); margin: 0 auto; border: 3px solid #7e648f; background: #c0c8ee; box-shadow: 0 0 0 3px #f9f0fd,6px 6px 0 3px #c5b2d4; }
.yd-home .yd-room-art { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; transition: filter .5s ease; user-select: none; -webkit-user-drag: none; }
.yd-room-atmosphere { position: absolute; inset: 0; pointer-events: none; background: #473d7d; opacity: 0; mix-blend-mode: multiply; transition: opacity .5s; }
.yd-room-stage[data-light="evening"] .yd-room-art { filter: brightness(.8) saturate(.8); }
.yd-room-stage[data-light="evening"] .yd-room-atmosphere { opacity: .2; }
.yd-home.yd-evening { background-color: #d3c7e3; }
.yd-home .yd-room-objects, .yd-room-extras { position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; width: auto; }
.yd-room-extras { z-index: 3; }
.yd-home .yd-hotspot { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); min-width: 44px; min-height: 44px; padding: 0; border: 2px solid transparent; border-radius: 2px; background: transparent; transform: translate(-50%,-50%); color: #493452; pointer-events: auto; touch-action: manipulation; transition: background-color .15s, border-color .15s, box-shadow .15s; cursor: pointer; }
.yd-home .yd-hotspot:hover, .yd-home .yd-hotspot:focus-visible { border: 2px solid #fff2c7; outline: 2px solid #6e4e80; outline-offset: 2px; background-color: #fff4cd20; box-shadow: 0 0 0 5px #f7e4b73b; z-index: 5; }
.yd-home .yd-hotspot:active { background-color: #fff4cd55; }
.yd-hotspot-label { position: absolute; display: flex; align-items: center; justify-content: center; gap: 6px; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); padding: 6px 9px; border: 2px solid #785c88; background: #fff8e9; color: #4c3457; box-shadow: 3px 3px 0 #60487155; font: 500 .9rem/1.2 var(--yd-pixel); white-space: nowrap; pointer-events: none; transition: opacity .15s, background-color .15s; }
.yd-hotspot-label::after { content: ''; position: absolute; left: calc(50% - 4px); top: 100%; width: 8px; height: 6px; background: #785c88; clip-path: polygon(0 0,100% 0,100% 50%,75% 50%,75% 100%,25% 100%,25% 50%,0 50%); }
.yd-hotspot--main:hover .yd-hotspot-label, .yd-hotspot--main:focus-visible .yd-hotspot-label { background: #ffe7a9; }
.yd-hotspot.is-visited .yd-hotspot-label { border-color: #64815a; }
.yd-hotspot--extra .yd-hotspot-label, [data-labels="off"] .yd-hotspot--main .yd-hotspot-label { opacity: 0; }
.yd-home .yd-hotspot:is(:hover,:focus-visible) .yd-hotspot-label { opacity: 1; }
.yd-hotspot--extra[data-room-action="light"][aria-pressed="true"] { background: #ffde8b38; box-shadow: 0 0 28px 12px #ffe7a43b; border-color: #ffdf954d; }
.yd-room-particles { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.yd-particle { position: absolute; font: 600 24px/1 var(--yd-pixel); color: #c85588; text-shadow: 2px 0 #fff6dd,-2px 0 #fff6dd,0 2px #fff6dd,0 -2px #fff6dd; animation: yd-sparkle 1.2s ease-out both; }
.yd-particle--water { color: #5a98c7; font-size: 40px; }
.yd-particle--sparkle { color: #b17b30; }
@keyframes yd-sparkle { from { opacity: 1; transform: translate(-50%,-20%); } to { opacity: 0; transform: translate(calc(-50% + var(--drift)),-95px); } }
.yd-room-greeting { display: flex; align-items: center; gap: 12px; position: absolute; z-index: 7; bottom: 3.5%; left: 50%; transform: translateX(-50%); width: 62%; max-width: 670px; padding: 12px 16px; background: #fff8ecf5; border: 2px solid #826391; box-shadow: 4px 4px 0 #75598675; pointer-events: none; }
.yd-room-greeting > svg { color: #a05f87; flex: none; }
.yd-room-greeting strong { display: block; font: 500 1.05rem/1.3 var(--yd-pixel); margin-bottom: 4px; }
.yd-room-greeting p { font-size: .75rem; line-height: 1.5; min-height: 1.5em; color: #5c4c68; }
.yd-room-help { position: absolute; z-index: 20; right: 20px; top: 20px; width: min(360px,calc(100% - 40px)); padding: 21px; background: #fff9ed; border: 3px solid #765786; box-shadow: 6px 6px 0 #60456d70; }
.yd-room-help strong { display: block; font: 500 1.3rem/1.3 var(--yd-pixel); }
.yd-room-help p { font-size: .84rem; line-height: 1.7; margin-top: 12px; }
.yd-room-help button { margin-top: 17px; }
.yd-home kbd { font: 500 .73rem/1.4 var(--yd-pixel); padding: 2px 4px; border: 1px solid #a38bb0; background: #f5edf8; }
.yd-home .yd-room-dock { position: static; width: fit-content; max-width: 100%; display: flex; gap: 7px; padding: 7px; margin: 14px auto 0; background: #e0cdec; border: 2px solid #80648e; box-shadow: 4px 4px 0 #c0a7ce; backdrop-filter: none; }
.yd-room-dock a { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; min-width: 107px; padding: 8px 12px; font: 500 .93rem/1.25 var(--yd-pixel); background: #fff7e7; border: 2px solid #ad8cbb; box-shadow: inset -2px -2px 0 #e9dce6,inset 2px 2px 0 white; }
.yd-room-dock a:nth-child(2) { background: #f5dce6; }
.yd-room-dock a:nth-child(3) { background: #dfead1; }
.yd-room-dock a:nth-child(4) { background: #f8e6ba; }
.yd-room-dock a:nth-child(5) { background: #e6dcf3; }
.yd-room-dock a:hover { transform: translateY(-2px); border-color: #775285; }
.yd-room-dock a.is-visited::after { content: ''; position: absolute; right: 3px; bottom: 3px; width: 4px; height: 4px; background: #607a50; }
.yd-room-mobile-extras { display: none; }
.yd-home .yd-room-hint { text-align: center; font: 400 .7rem/1.5 var(--yd-pixel); color: #725e81; margin-top: 11px; }
.yd-room-hint > span { color: #a45c82; padding-left: 4px; }
.yd-room-footer { width: min(1480px,calc(100% - 48px)); margin: 0 auto; padding: 13px 0 17px; display: flex; justify-content: space-between; gap: 20px; font-size: .65rem; color: #6f5b7b; }
.yd-room-footer a { text-decoration: underline; text-underline-offset: 3px; padding: 3px; }
.yd-room-mode .yd-room-footer { padding-block: 9px 13px; }
.yd-home .yd-reading-nav { position: static; display: flex; justify-content: center; gap: 16px 28px; flex-wrap: wrap; margin-top: 25px; padding: 20px; background: #f8f1fb; border: 2px solid #a88eb4; box-shadow: none; backdrop-filter: none; font: 500 1.05rem/1.5 var(--yd-pixel); }
.yd-reading-nav a { text-decoration: underline; text-underline-offset: 5px; padding-block: 5px; }
.yd-home #portfolio-content { outline: none; }
.yd-reading-mode :is(#room,.yd-room-dock,.yd-room-mobile-extras,.yd-room-hint,#explore-status) { display: none !important; }
.yd-reading-mode .yd-room-heading { width: min(1240px,100%); max-width: none; min-width: 0; padding-top: 25px; }
.yd-reading-mode .yd-room-heading h1 { font-size: clamp(2rem,4vw,3rem); }
.yd-home.yd-window-open { overflow: hidden; }

/* A native dialog keeps focus inside the active window and supports Escape. */
.yd-home .yd-room-window { position: fixed; inset: 0; padding: 0; margin: auto; width: min(1160px,calc(100% - 48px)); max-width: none; max-height: min(900px,calc(100dvh - 48px)); border: 3px solid #715281; border-radius: 0; background: #fbf5ec; color: var(--yd-ink); box-shadow: 7px 7px 0 #412b5866; overflow: hidden; }
.yd-room-window:not([open]) { display: none; }
.yd-room-window[open] { display: flex; flex-direction: column; }
.yd-room-window::backdrop { background: #332342aa; backdrop-filter: blur(3px); }
.yd-room-window-bar { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 15px; padding: 5px 7px 5px 17px; min-height: 54px; border-bottom: 2px solid #715281; background: #dfcaed; font: 500 1.05rem/1.3 var(--yd-pixel); }
.yd-room-window-bar > button { display: flex; align-items: center; gap: 13px; min-height: 44px; flex-shrink: 0; padding: 6px 11px; border: 2px solid #9973a3; background: #fff4e6; box-shadow: 2px 2px 0 #b899c6; font: 500 .85rem/1 var(--yd-pixel); }
.yd-room-window-bar > button:hover { background: #f8d4dd; }
.yd-room-window-bar > button > span:last-child { font: 500 1.5rem/1 var(--yd-pixel); }
.yd-home .yd-window-tabs { position: static; width: auto; z-index: auto; display: flex; gap: 4px; padding: 7px 13px; margin: 0; flex-shrink: 0; background: #f0e3f5; border: 0; border-bottom: 1px solid #c8afd1; box-shadow: none; backdrop-filter: none; }
.yd-window-tabs > a { display: flex; justify-content: center; align-items: center; flex: 1; min-height: 44px; padding: 5px 9px; font: 500 .9rem/1.3 var(--yd-pixel); }
.yd-window-tabs a[aria-current="location"] { background: #745186; color: #fff9ec; box-shadow: 2px 2px 0 #bfa1cb; }
.yd-window-tabs a:not([aria-current]):hover { background: #e2cceb; }
.yd-window-content { overflow-y: auto; overscroll-behavior: contain; padding: 30px; min-height: 0; scrollbar-color: #b59bc3 #f1e5f4; scrollbar-width: thin; }
.yd-window-content > .yd-section, .yd-window-content .yd-wrap { width: 100%; margin: 0; padding-block: 0; }
.yd-window-content .yd-about-section { border: 0; background: transparent; }
.yd-window-content .yd-about-grid { column-gap: 35px; row-gap: 25px; }
.yd-window-content .yd-playground { border: 0; box-shadow: none; background: transparent; padding: 0; }
.yd-window-content .yd-playground::before { content: none; }
.yd-window-content .yd-contact { border: 0; box-shadow: none; padding: 10px 0; background: transparent; }
.yd-window-content .yd-section-heading { gap: 28px; }
.yd-window-content h2 { font-size: clamp(2rem,3.8vw,3rem); }
.yd-window-content .yd-project { grid-template-columns: 260px 1fr; gap: 0 24px; }
.yd-window-content .yd-games-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 25px; }
.yd-window-content .yd-game-info { padding: 17px; }
.yd-window-content .yd-skills-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
.yd-window-content .yd-contact h2 { color: #4f654a; }
.yd-window-foot { display: flex; flex-shrink: 0; justify-content: space-between; gap: 10px; padding: 7px 15px; border-top: 1px solid #c8afd1; background: #ede0f1; font: 500 .65rem/1.6 var(--yd-pixel); color: #6c537a; }
.yd-window-foot kbd { font-size: .6rem; }
.yd-room-window[data-area="games"] .yd-room-window-bar { background: #dbe7c7; }
.yd-room-window[data-area="blog"] .yd-room-window-bar { background: #f2dfad; }
.yd-room-window[data-area="about"] .yd-room-window-bar { background: #f1d3df; }
.yd-room-window[data-area="contact"] .yd-room-window-bar { background: #d9e8d2; }

/* Reading view remains a complete, searchable portfolio, even without JS. */
@media (max-width:1100px) {
  .yd-about-grid { gap: 35px; }
  .yd-skills-list span { font-size: .7rem; }
  .yd-home .yd-game h3 { font-size: 1.45rem; }
  .yd-journal-entry { grid-template-columns: 130px minmax(0,1fr) 100px; gap: 20px; }
  .yd-journal-entry > img { width: 100px; height: 74px; }
  .yd-contact { gap: 30px; padding: 35px; }
  .yd-room-greeting { width: 70%; padding: 9px 12px; }
  .yd-room-greeting strong { font-size: .96rem; }
  .yd-room-greeting p { font-size: .7rem; }
}
@media (max-width:850px) {
  .yd-wrap { width: calc(100% - 40px); }
  .yd-section { padding-block: 56px; }
  .yd-section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .yd-work-toolbar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .yd-project, .yd-window-content .yd-project { grid-template-columns: minmax(0,1fr); gap: 0; }
  .yd-project-cover { grid-column: 1; grid-row: auto; margin-bottom: 20px; padding-top: 35px; }
  .yd-browser { max-width: 390px; margin-inline: auto; }
  .yd-project-meta, .yd-home .yd-project h3, .yd-project > p, .yd-project > .yd-text-link { grid-column: 1; }
  .yd-about-grid { grid-template-columns: 1fr; row-gap: 30px; }
  .yd-about-copy h2 br { display: none; }
  .yd-about-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .yd-inventory { margin: 0; }
  .yd-skills-list, .yd-window-content .yd-skills-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .yd-certificates summary small { margin: 0; }
  .yd-play-intro { flex: auto; }
  .yd-games-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 24px; }
  .yd-behind-play { align-items: flex-start; flex-wrap: wrap; }
  .yd-behind-play .yd-text-link { margin-left: 0; }
  .yd-journal-entry { grid-template-columns: 105px minmax(0,1fr); }
  .yd-journal-entry > img { display: none; }
  .yd-contact { grid-template-columns: 1fr; gap: 32px; }
  .yd-contact-actions { align-items: flex-start; }
  .yd-copy-status { text-align: left; }
  .yd-room-availability { display: none; }
  .yd-home .yd-room-header { width: calc(100% - 32px); gap: 12px; }
  .yd-home .yd-room-brand { font-size: 1.4rem; }
  .yd-brand-world { font-size: .77rem; }
  .yd-room-world { padding-inline: 16px; }
  .yd-room-heading p { font-size: .68rem; }
  .yd-home .yd-room-progress { font-size: .7rem; }
  .yd-hotspot-label { font-size: .8rem; padding: 5px 7px; }
}
@media (max-width:600px) {
  .yd-home .yd-room-header { width: calc(100% - 24px); flex-wrap: wrap; gap: 10px; padding-block: 13px 10px; }
  .yd-home .yd-room-brand { font-size: 1.45rem; }
  .yd-room-brand svg { width: 25px; height: 25px; }
  .yd-room-controls { gap: 6px; }
  .yd-home .yd-ui-button { font-size: .76rem; padding-inline: 8px; }
  .yd-home #toggle-labels { display: none; }
  .yd-home .yd-help-button { font-size: 1.15rem; min-width: 38px; }
  .yd-room-world { padding-inline: 12px; }
  .yd-room-heading { width: 100%; min-width: 0; display: block; margin: 2px 0 13px; }
  .yd-home .yd-room-heading h1 { font-size: 1.55rem; }
  .yd-room-heading p { font-size: .68rem; margin-top: 5px; }
  .yd-home .yd-room-progress { position: static; margin-top: 8px; font-size: .7rem; }
  .yd-room-progress > span { font-size: .9rem; }
  .yd-room-stage { width: 100%; min-width: 0; max-width: none; border-width: 2px; box-shadow: 0 0 0 2px #f9f0fd,4px 4px 0 2px #c5b2d4; }
  .yd-home .yd-hotspot { min-width: 24px; min-height: 24px; }
  .yd-hotspot-label { padding: 4px; border-width: 1px; bottom: calc(100% + 3px); box-shadow: 2px 2px 0 #60487155; }
  .yd-hotspot--main .yd-hotspot-name { display: none; }
  .yd-hotspot:is(:hover,:focus-visible) .yd-hotspot-name { display: inline; }
  .yd-hotspot--extra .yd-hotspot-label { font-size: .7rem; padding: 5px 7px; }
  .yd-room-greeting { position: relative; inset: auto; transform: none; width: calc(100% + 4px); max-width: none; margin: -1px -2px -2px; padding: 13px 12px; border: 2px solid #826391; box-shadow: none; min-height: 88px; }
  .yd-room-greeting strong { font-size: .96rem; }
  .yd-room-greeting p { font-size: .75rem; min-height: 3em; }
  .yd-room-greeting > svg { width: 27px; height: 27px; }
  /* The overlay coordinates track only the image, not the mobile dialogue below it. */
  .yd-home .yd-room-objects, .yd-room-extras, .yd-room-particles, .yd-room-atmosphere { bottom: auto; height: auto; aspect-ratio: 3 / 2; }
  .yd-room-stage { aspect-ratio: auto; }
  .yd-room-help { position: fixed; top: 76px; right: 12px; width: calc(100% - 24px); max-height: calc(100dvh - 100px); overflow-y: auto; padding: 20px; }
  .yd-home .yd-room-dock { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); width: 100%; gap: 5px; padding: 6px; margin-top: 14px; }
  .yd-room-dock a { flex-direction: column; gap: 6px; min-width: 0; min-height: 68px; padding: 7px 2px; font-size: .7rem; }
  .yd-room-dock svg { width: 23px; height: 23px; }
  .yd-room-mobile-extras { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; margin: 12px auto 0; width: 100%; }
  .yd-room-mobile-extras button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 56px; background: #eee5f6; border: 1px solid #bba1ca; font: 500 .65rem/1.2 var(--yd-pixel); }
  .yd-room-mobile-extras button:hover, .yd-room-mobile-extras button[aria-pressed="true"] { background: #fff0c8; border-color: #8a6e9b; }
  .yd-nap-icon { height: 21px; font: 600 1.25rem/1 var(--yd-pixel); }
  .yd-room-footer { width: calc(100% - 26px); font-size: .61rem; padding-bottom: 15px; }
  .yd-home .yd-room-hint { margin: 13px 0 6px; }
  .yd-home .yd-room-window { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-width: 2px; box-shadow: 4px 4px 0 #412b5866; }
  .yd-room-window-bar { padding-left: 10px; font-size: .93rem; gap: 9px; }
  .yd-room-window-bar > button { padding-inline: 8px; gap: 8px; font-size: .74rem; }
  .yd-home .yd-window-tabs { gap: 3px; padding: 5px; }
  .yd-window-tabs > a { font-size: .78rem; padding-inline: 3px; }
  .yd-window-content { padding: 20px 16px 24px; }
  .yd-window-content .yd-project { padding: 14px; }
  .yd-window-content .yd-section-heading { margin-bottom: 23px; }
  .yd-room-window .yd-eyebrow { font-size: .74rem; }
  .yd-window-foot { font-size: .6rem; padding-inline: 10px; }
  .yd-wrap { width: calc(100% - 32px); }
  .yd-section { padding-block: 43px; }
  .yd-about-aside { display: block; }
  .yd-inventory { margin-top: 24px; }
  .yd-player-card { gap: 13px; padding: 10px; }
  .yd-player-card img { width: 80px; height: 80px; }
  .yd-player-card > div { font-size: .68rem; }
  .yd-player-card .yd-player-name { font-size: 1.1rem; }
  .yd-certificates summary { padding: 14px; font-size: 1.05rem; }
  .yd-certificates summary > span:first-child { gap: 8px; }
  .yd-certificates summary small { width: 100%; font-size: .73rem; }
  .yd-certificate-grid { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .yd-playground { padding: 25px 17px; }
  .yd-journal-list { padding-inline: 16px; }
  .yd-journal-entry { grid-template-columns: 1fr; gap: 13px; }
  .yd-entry-date { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  .yd-entry-date time { margin: 0; }
  .yd-contact { padding: 25px 20px; }
  .yd-desktop-break { display: none; }
  .yd-contact-socials { gap: 24px; }
  .yd-home .yd-reading-nav { gap: 8px 18px; font-size: .95rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .yd-home *, .yd-home *::before, .yd-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .yd-home { background: white; }
  .yd-home #portfolio-content[hidden] { display: block !important; }
  .yd-room-world, .yd-room-controls, .yd-room-window-bar, .yd-window-tabs, .yd-window-foot, .yd-reading-nav { display: none !important; }
  .yd-home .yd-room-window[open] { position: static; display: block; width: 100%; max-height: none; border: 0; box-shadow: none; }
  .yd-window-content { overflow: visible; padding: 0; }
  .yd-section { break-inside: avoid; }
}
