html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;      /* ปิด pull-to-refresh/bounce ใน Chrome/Edge/Firefox */
    overscroll-behavior-y: none;    /* ปิดแค่แกน Y */
    overflow: hidden;               /* ป้องกัน scroll หลัก */
  }

body {
    background-color: #faf8ef;
    display: flex;
    justify-content: center;
    font-family: "Clear Sans", Helvetica, serif;
    overflow: hidden; /* ป้องกัน scroll บนมือถือ */
}

h1 {
    font-size: 80px;
    line-height: 0.7;
    color: #776E65;
    margin: 0;
}

p, h2 {
    margin: 0;
}

.container {
    width: 468px;
    margin-top: 30px;
}

.info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    width: 456px;
    height: 456px;
    background-color: #BBADA0;
    border: 7px solid #BBADA0;
    border-radius: 6px;
    margin-top: 20px;
}

.grid div {
    width: 100px;
    height: 100px;
    margin: 7px;
    border-radius: 3px;
    background-color: #EEE4DA;
    color: #AFA192;
    font-weight: bold;
    text-align: center;
    font-size: 60px;
    line-height: 1.6;
}

.score-container {
    text-align: center;
    width: 70px;
    height: 60px;
    border-radius: 3px;
    background-color: #8f7a66;
    color: #FFF;
}

#score {
    font-size: 30px;
}

.score-title {
    font-size: 16px;
}

/* Group score and character side-by-side */
.status {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Fixed-size box for character image */
  .char-slot {
    width: 100px;
    height: 100px;
    /* optional: border or background if you want a frame */
  }
  
  .char-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }