/* style.css */
body {
    margin: 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    /* MODIFIED: 添加了背景图 */
    background-image: url('assets/images/background.png');
    background-size: cover;
    background-position: center;
}

/* MODIFIED: 为柱子添加样式，使其固定在侧边 */
#game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px; /* 控制柱子离左边的距离 */
    width: 100px; /* 控制柱子的宽度 */
    height: 100%;
    background-image: url('assets/images/pillar.png');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1; /* 确保在最底层 */
}


/* 1. "just for wjj" 的样式 */
#title-text {
    position: absolute;
    /* MODIFIED: 向上移动了一些，避免遮挡内容，同时保证完整显示 */
    top: 10px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    color: #333;
    z-index: 10;
}

/* 2. "尽情打我吧" 的样式 */
#prompt-text {
    position: absolute;
    /* MODIFIED: 向下移动了一些 */
    bottom: 50px; 
    left: 50%;
    transform: translateX(-50%);
    /* MODIFIED: 字体加大了 */
    font-size: 4em; 
    font-weight: bold;
    color: #c0392b;
    z-index: 10;
}

/* 3. 上传图片的范围 */
#target-area {
    position: absolute;
    top: 50%;
    left: 50%;
    /* MODIFIED: 扩大了宽高范围 */
    width: 38vw; 
    height: 38vw;
    max-width: 450px; 
    max-height: 450px;
    transform: translate(-50%, -50%);
    border: 2px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bruises-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bruise {
    position: absolute;
    width: 50px;
    height: 50px;
    /* ATTENTION: 请在这里创建一个红肿效果图片 */
    background-image: url('assets/images/bruise_effect.png');
    background-size: contain;
    opacity: 0.7;
}

/* 5. 弹弓不动 (无需修改) */
#slingshot {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    z-index: 5;
}

/* 石头样式 (无需修改) */
#stone {
    position: absolute;
    width: 30px;
    height: 30px;
    bottom: 100px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    visibility: hidden;
}