/* 玩星派對 改版事前預約：功能用樣式（js/reserve.js 動態產生的訊息、提示與暫代彈窗）。
   彈窗版面為功能用基本版，美術切好正式彈窗後可移除對應 .rsv-modal 樣式。 */
.rsv-msg { margin: 6px 0 0; font-size: 14px; line-height: 1.4; font-weight: bold; min-height: 0; }
.rsv-msg:empty { display: none; }
.rsv-msg.is-error { color: #d6001c; }
.rsv-msg.is-ok { color: #0b8129; }

.is-disabled { opacity: .5; filter: grayscale(.6); }
.is-cooldown { position: relative; }
.is-cooldown::after { content: attr(data-cooldown); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .85); color: #0005bb; font-size: 14px; font-weight: bold; border-radius: inherit; }

.rsv-toast { position: fixed; left: 50%; top: 64px; z-index: 200; box-sizing: border-box; width: max-content; max-width: min(90vw, 560px); padding: 10px 16px; border-radius: 10px; background: #0005bb; color: #fff; font-size: 15px; font-weight: bold; text-align: center; white-space: pre-line; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.rsv-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 集氣人數未滿 1 萬人（含頁面剛載入、人數尚未取得）：隱藏數字，只顯示「已開跑」（切版 .goal__starting） */
.goal__count.is-hidden-count .js-digits { display: none; }


/* 基本彈窗 */
.rsv-modal { position: relative; box-sizing: border-box; width: 100%; padding: 28px 22px 24px; border: 4px solid #0005bb; border-radius: 18px; background: #fff; color: #0005bb; font-weight: bold; }
.rsv-modal__title { margin: 0 0 14px; font-size: 24px; text-align: center; }
.rsv-modal__close { position: absolute; right: 8px; top: 6px; width: 36px; height: 36px; border: 0; background: none; color: #0005bb; font-size: 28px; line-height: 1; cursor: pointer; }
.rsv-modal__body { font-size: 16px; line-height: 1.5; }
.rsv-modal__body a { color: #0752ff; }

.rsv-sub { margin: 8px 0; font-size: 14px; font-weight: 500; color: #3d49c8; }
.rsv-ticket { margin: 10px 0; padding: 10px 12px; border: 2px dashed #268ee7; border-radius: 10px; background: #f4f8ff; }
.rsv-ticket__name { font-size: 15px; }
.rsv-ticket__note { margin-top: 4px; font-size: 13px; font-weight: 500; color: #3d49c8; }
.rsv-copyrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.rsv-code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: Consolas, "Courier New", monospace; font-size: 18px; letter-spacing: .04em; }
.rsv-code--link { font-size: 13px; }
.rsv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.rsv-btn { display: inline-block; box-sizing: border-box; padding: 9px 16px; border: 2px solid #0005bb; border-radius: 999px; background: #fff; color: #0005bb; font-size: 15px; font-weight: bold; text-align: center; text-decoration: none; cursor: pointer; }
.rsv-btn:hover { background: #eef3ff; }
.rsv-btn--primary { background: #ffd400; }
.rsv-btn--primary:hover { background: #ffe14d; }
.rsv-btn--sm { padding: 5px 12px; font-size: 13px; }
.rsv-btn--block { display: block; width: 100%; margin-top: 12px; }
.rsv-btn[disabled] { opacity: .55; cursor: default; }

.rsv-field { margin-top: 10px; }
.rsv-field--row { display: flex; gap: 8px; }
.rsv-input { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 2px solid #268ee7; border-radius: 10px; font-size: 16px; }
.rsv-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.rsv-check input { margin-top: 3px; }
