/* ============================================= */
/* 獎品池卡 —— Figma 獎品池卡_M 2273:8377
   點按鈕、獎品圖、獎品名稱都會開「投入抽獎券」彈窗（由 JS 綁定）。 */
/* ============================================= */
.lottery__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 20px;
}

/* 獎品圖：後端提供的圖片已含背景，正方形滿版 */
.lottery__card-image-wrap {
  aspect-ratio: 1 / 1;
}

.lottery__card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.lottery__card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-radius: 0 0 18px 18px;
}

/* 名稱：最多 2 行，不足 2 行也保留 2 行高度，讓同一列的按鈕對齊 */
.lottery__card-name {
  display: -webkit-box;
  min-height: 36px;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--navy);
  text-align: center;
  word-break: break-word;
  cursor: pointer;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 參加人數＋按鈕，固定貼底，讓同一列的按鈕對齊 */
.lottery__card-footer {
  margin-top: auto;
  padding: 0 8px 4px;
}

.lottery__card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.lottery__card-stat-icon {
  font-size: 11.52px;
  line-height: 17.28px;
}

.lottery__card-stat-label {
  color: var(--neutral-600);
}

.lottery__card-stat-value {
  color: var(--neutral-900);
}

/* 參加抽獎按鈕：字樣是設計稿的向量字（白色外框 + 藍字兩層疊加） */
.lottery__card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 8px 2px;
  background: var(--brand-500);
  border: 2px solid var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow-navy-2);
  cursor: pointer;
}

.lottery__card-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.lottery__card-btn-text {
  display: grid;
  flex: none;
}

.lottery__card-btn-text img {
  display: block;
  grid-area: 1 / 1;
}

.lottery__card-btn-text-stroke {
  width: 60.07px;
  height: 12.97px;
}

.lottery__card-btn-text-fill {
  width: 57.79px;
  height: 10.99px;
  margin: 1px 0 0 1px;
}

.lottery__card-btn-arrow {
  display: block;
  flex: none;
  width: 13.18px;
  height: 13.18px;
  margin: -0.59px;
}
