:root {
    /* THE PALETTE: Y2K Holographic */
    --bg-gradient: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    --glass-panel: rgba(255, 255, 255, 0.45);
    --card-bg: rgba(255, 255, 255, 0.6);
    
    /* ACCENTS */
    --hot-pink: #FF0055;
    --deep-purple: #4800ff;
    --text-dark: #2a0845;
    --border-light: rgba(255, 255, 255, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    color: var(--text-dark);
    font-family: 'VT323', monospace;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* No scroll on desktop */
}

/* --- THE BACKGROUND NOISE --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

/* --- THE MAIN DEVICE (Frosted Plastic) --- */
.device-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    
    background: var(--glass-panel);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 3px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(72, 0, 255, 0.15);
    
    padding: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto; /* Allow scrolling INSIDE the box on desktop */
}

/* --- STATUS BAR --- */
.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    color: var(--hot-pink);
    text-transform: uppercase;
    border-bottom: 2px dashed rgba(255,255,255,0.5);
    padding-bottom: 10px;
    flex-shrink: 0;
}

.pulse {
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* --- THE GRID LAYOUT --- */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left column smaller, Right bigger */
    grid-template-rows: auto 1fr;
    gap: 20px;
    height: 100%;
}

/* --- CARDS (The Content Boxes) --- */
.card {
    background: var(--card-bg);
    border: 1px solid white;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease;
    color: var(--text-dark);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--hot-pink);
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.2);
}

/* --- PROFILE SECTION --- */
.profile-card {
    grid-row: span 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--hot-pink);
    margin-bottom: 15px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.avatar:hover {
    transform: rotate(360deg) scale(1.1);
    cursor: help;
}

h1 {
    font-family: 'Dela Gothic One', sans-serif; /* ANIME FONT */
    font-size: 3.5rem; 
    color: var(--deep-purple);
    text-shadow: 4px 4px 0px rgba(255,255,255,0.6);
    transform: rotate(-3deg);
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: bold;
    opacity: 0.8;
}

/* --- LINKS LIST --- */
.link-list {
    list-style: none;
    margin-top: 10px;
}

.link-list li {
    margin: 12px 0;
}

/* Standard Links (Outlined) */
.link-list a {
    color: var(--deep-purple);
    background: rgba(255,255,255,0.5);
    border: 2px solid var(--deep-purple);
    text-decoration: none;
    font-size: 1.4rem;
    display: block;
    padding: 10px;
    transition: 0.2s;
    border-radius: 10px;
    font-weight: bold;
}

.link-list a:hover {
    background: var(--deep-purple);
    color: white;
    transform: scale(1.02);
}

/* --- THE JUICY SNACK FUND BUTTON --- */
.link-list a.money-button {
    background: var(--hot-pink);
    color: white;
    border: 2px solid white;
    box-shadow: 4px 4px 0px var(--deep-purple);
    text-align: center;
    
    /* THE FIX: Tell the browser to look for Emojis if the pixel font fails */
    font-family: 'VT323', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.link-list a.money-button:hover {
    background: #ff3377;
    box-shadow: 2px 2px 0px var(--deep-purple); 
    transform: translateY(2px);
}

/* --- FLOATING STICKERS --- */
.sticker {
    position: absolute;
    font-size: 4rem;
    cursor: grab;
    z-index: 10;
    user-select: none;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.2));
}

.sticker-1 { top: 10%; right: 10%; transform: rotate(15deg); }
.sticker-2 { bottom: 15%; left: 5%; transform: rotate(-10deg); }

/* --- THE MODAL (Popup) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border: 4px solid var(--hot-pink);
    margin: 5% auto;
    width: 90%;
    max-width: 500px;
    height: 650px;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(255, 0, 85, 0.4);
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: var(--hot-pink);
    color: white;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    font-weight: bold;
}

.close-btn {
    cursor: pointer;
    font-weight: bold;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* --- MOBILE RESPONSE --- */
@media (max-width: 600px) {
    body {
        /* Unlock the body scroll on mobile */
        overflow-y: auto; 
        height: auto;
        display: block; 
        padding: 20px 0;
    }

    .device-container {
        width: 95%; 
        height: auto; 
        min-height: 90vh;
        margin: 0 auto; 
        overflow: visible; 
    }
    
    .grid-layout { 
        display: flex;
        flex-direction: column; /* Stack Profile on top of links */
    }

    h1 { font-size: 2.5rem; } 
}