body {
    /* 暗色背景 */
    background-color: #1a1a2e; /* 深藍紫色 */
    color: #e4e4e4; /* 淺灰色文字 */
    
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

h1 {
    color: #e4e4e4; /* 確保標題在暗色背景上可見 */
    margin-bottom: 50px; /* 增加間距 */
    font-size: 2.8em; /* 稍微放大標題 */
    user-select: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* 標題增加輕微光暈 */
}

#emoji-display {
    /* 核心調整：使用視口寬度 (vw) 確保佔據螢幕的 30% */
    /* 30vw 比先前的 35vw 稍微縮小 */
    width: 30vw; 
    height: 30vw; 
    min-width: 180px; /* 設定最小寬度 */
    min-height: 180px; /* 設定最小高度 */
    
    background-color: #2c2c4d; /* 較淺的暗色方框 */
    
    border: none; /* 維持無邊框 */
    
    border-radius: 30px; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-size: 30px; /* 提示文字的字體大小 */
    color: #cccccc; /* 提示文字顏色 */
    
    cursor: pointer;
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.4); 
    
    transition: transform 0.1s;
    user-select: none;
}

/* 讓雙擊區域在被點擊時有一點反應 */
#emoji-display:active {
    transform: scale(0.98);
}

/* 當有 emoji 顯示時，將文字隱藏並放大 emoji */
#emoji-display.has-emoji {
    /* 配合容器縮小，將字體大小也略微縮小，以避免文字溢出 */
    font-size: 18vw; 
    max-height: 90%; 
    
    color: inherit; 
    text-shadow: none; 
}
