/* 籤紙公開（店主 2026-10-09）：一番賞結束後在商品頁公開全部籤紙，見 /client/js/slip-board.js */
.slip-board__lead { font-size: 17px; font-weight: 700; margin: 12px 0 6px; }
.slip-board__red { color: #d7141f; }
.slip-board__left { font-size: 15px; color: #7a1111; background: #fff4f4; border: 1px dashed #e7a3a3; border-radius: 8px; padding: 8px 12px; margin: 0 0 8px; }
.slip-board__lastone { font-size: 15px; font-weight: 700; color: #6b4400; background: #fff8e1; border: 1px solid #f1d27a; border-radius: 8px; padding: 8px 12px; margin: 0 0 8px; }

.slip-board__tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.slip-chip { border: 1px solid #ccc; background: #fff; color: #333; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.slip-chip.is-active { background: #111; border-color: #111; color: #fff; }

.slip-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

/* 一支籤＝一張打開的籤紙：左邊色帶寫籤號（顏色跟獎項一覽的賞別一樣），右邊寫獎項 */
.slip {
    --tone: #d11919;
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 56px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.slip.tone-red { --tone: #d11919; }
.slip.tone-orange { --tone: #ff7a2f; }
.slip.tone-yellow { --tone: #f6b800; }
.slip.tone-gold { --tone: #b87500; }

.slip__no {
    flex: none;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tone);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    /* 撕線 */
    border-right: 2px dashed rgba(255, 255, 255, .7);
}
.slip__body { flex: 1; min-width: 0; padding: 6px 8px; display: flex; flex-direction: column; justify-content: center; }
.slip__short { font-size: 17px; line-height: 1.15; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip__star { color: #d9a406; margin-right: 2px; }
.slip__name { font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip__state { position: absolute; right: 4px; top: 3px; font-size: 11px; font-weight: 700; color: #999; }

/* 已開的籤淡一點；沒開出的籤醒目（紅色虛線框） */
.slip.is-open { background: #fafafa; }
.slip.is-open .slip__short { color: #555; }
.slip.is-left { border: 2px dashed #d7141f; background: #fffafa; }
.slip.is-left .slip__state { color: #d7141f; }
.slip.is-big { box-shadow: 0 0 0 2px #f1c232 inset; }
.slip.is-big.is-left { box-shadow: 0 0 10px rgba(241, 194, 50, .8); }
.slip.is-lastone::after { content: "👑"; position: absolute; right: 4px; bottom: 2px; font-size: 13px; }

@media (max-width: 767px) {
    .slip-board__lead { font-size: 15px; }
    /* 手機一排 4 支，只放籤號＋賞別（完整名稱在上面的獎項一覽） */
    .slip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .slip { min-height: 44px; }
    .slip__no { width: 24px; font-size: 12px; border-right-width: 1px; }
    .slip__body { padding: 4px 5px; }
    .slip__short { font-size: 15px; white-space: nowrap; }
    .slip__name { display: none; }
    /* 一支籤只有 90px 寬：不寫「已開／沒開出」，看圖例（紅色虛線＝沒開出） */
    .slip__state { display: none; }
    .slip.is-lastone::after { font-size: 11px; }
}

.slip-board__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #555; margin: 0 0 10px; }
.slip-board__legend i { display: inline-block; width: 18px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.slip-board__legend .lg-left { border: 2px dashed #d7141f; background: #fffafa; }
.slip-board__legend .lg-open { border: 1px solid #e3e3e3; background: #fafafa; }
.slip-board__legend .lg-big { box-shadow: 0 0 0 2px #f1c232 inset; background: #fff; }
