*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 32px;
}

.page-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 24px;
    letter-spacing: 0.05em;
}

.page.campaign {
    color: #fff;
}

.page.campaign .page-title,
.page.campaign .campaign-message {
    color: #fff;
    text-align: center;
}

.page.campaign .campaign-message {
    font-size: 1rem;
    margin: 0 0 12px;
}

.page.campaign .campaign-datetime {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 0.9rem;
    margin: 0 0 24px;
}

.alert {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success,
.alert-error {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.btn-primary-lg {
    display: block;
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 16px;
    background: #fff;
    color: #1e4f8a;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary-lg:hover {
    background: #f0f4fa;
}

.btn-secondary {
    display: block;
    flex: 1;
    padding: 12px 8px;
    background: #fff;
    color: #c41e3a;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.btn-secondary-full {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    background: #fff;
    color: #c41e3a;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
}

.btn-secondary .brand-black {
    color: #222;
}

.btn-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
}

.form-banner {
    width: 100%;
    background: #f5d547;
    color: #333;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.form-card {
    width: 100%;
    background: #fffef5;
    border: 2px solid #4a9e4a;
    border-radius: 0 0 8px 8px;
    padding: 20px 18px 24px;
    margin-bottom: 24px;
}

.form-card h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #333;
}

.form-card .hint {
    font-size: 0.8rem;
    color: #555;
    margin: 0 0 18px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    /* font-weight: 600; */
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.phone-row {
    display: flex;
    gap: 8px;
}

.phone-row select {
    width: 90px;
    padding: 10px 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
}

.phone-row input {
    flex: 1;
}

.checkbox-group {
    margin: 14px 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: normal;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-group input {
    margin-top: 3px;
    flex-shrink: 0;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: #e86c1a;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #d45f12;
}

.field-error {
    color: #c41e3a;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* —— Dashboard (post-login) —— */
.page.dashboard {
    padding-top: 28px;
}

.page.dashboard .user-card {
    width: 100%;
    background: #fff9d7;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.6;
}

.page.dashboard .user-card p {
    margin: 0;
}

.page.dashboard .user-card__phone {
    letter-spacing: 0.02em;
}

.page.dashboard .user-card__tickets {
    display: inline-block;
    margin: 6px 0 4px;
    padding: 2px 10px;
    border: 2px solid #c41e3a;
    line-height: 1.5;
}

.page.dashboard .user-card__meta {
    font-size: 0.9rem;
    font-weight: 600;
}

.page.dashboard .nav-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.page.dashboard .btn-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 12px 10px;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    line-height: 1.35;
    box-shadow: none;
}

.page.dashboard .btn-nav:hover {
    background: #f5f5f5;
}

.page.dashboard .btn-nav--full {
    grid-column: 1 / -1;
    min-height: 64px;
}

.page.dashboard .dashboard-logout {
    margin-top: 28px;
    text-align: center;
}

.page.dashboard .logout-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.logout-link {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.page.dashboard .placeholder-back {
    width: 100%;
    margin: 0 0 20px;
}

.page.dashboard .placeholder-back a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}

.page.dashboard .placeholder-card {
    width: 100%;
    background: #fff9d7;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    padding: 24px 18px;
    text-align: center;
}

.page.dashboard .placeholder-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.page.dashboard .placeholder-message {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

.spacer {
    flex: 1;
}

/* —— Spending registration —— */
body:has(.page.spending) {
    background: #FFC4CF;
}

.page.spending {
    padding-top: 16px;
}

.page.spending .spending-back {
    width: 100%;
    margin: 0 0 12px;
}

.page.spending .spending-back a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
}

.page.spending .form-messages {
    margin-bottom: 1rem;
}

.page.spending .spending-card {
    width: 100%;
    background: #fff;
    border: 2px solid #4a9e4a;
    border-radius: 8px;
    padding: 16px 14px 20px;
}

.page.spending .spending-section {
    border: 2px solid #4a9e4a;
    border-radius: 6px;
    padding: 12px 12px 14px;
    margin-bottom: 14px;
    background: #fffef8;
}

.page.spending .spending-section__title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.page.spending .channel-row {
    display: flex;
    gap: 24px;
}

.page.spending .channel-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.page.spending .channel-option input {
    width: 18px;
    height: 18px;
}

.page.spending .order-upload-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.page.spending .order-upload-row input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.page.spending .btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: #FFC4CF;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #d08090;
}

.page.spending .file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.page.spending .upload-filename {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: #666;
}

.page.spending .form-group {
    position: relative;
    margin-bottom: 0;
}

.page.spending .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.page.spending .order-number-label-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.page.spending .order-number-label-row label {
    margin-bottom: 0;
}

.page.spending .btn-invoice-sample {
    flex-shrink: 0;
    padding: 4px 10px;
    background: #fff;
    color: #c06070;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #FFC4CF;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.page.spending .btn-invoice-sample:hover {
    background: #fff5f7;
}

.page.spending .btn-invoice-sample[hidden] {
    display: none;
}

.page.spending .invoice-sample-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page.spending .invoice-sample-modal[hidden] {
    display: none;
}

.page.spending .invoice-sample-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.page.spending .invoice-sample-modal__panel {
    position: relative;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 20px 16px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.page.spending .invoice-sample-modal__title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.page.spending .invoice-sample-modal__image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.page.spending .invoice-sample-modal__close {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 16px;
    background: #FFC4CF;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.page.spending .invoice-sample-modal__close:hover {
    background: #d08090;
}

.page.spending .form-group input[type="text"],
.page.spending .form-group input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.page.spending .purchase-date-input {
    cursor: pointer;
    background-color: #fff;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #FFC4CF;
    border-color: #FFC4CF;
}

.flatpickr-day.today {
    border-color: #FFC4CF;
}

.page.spending .field-hint {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.page.spending .spending-section--terms {
    background: #fff;
}

.page.spending .btn-spending-submit {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 8px auto 0;
    padding: 12px 24px;
    background: #7ec8e8;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid #5ab0d0;
    border-radius: 999px;
    cursor: pointer;
}

.page.spending .btn-spending-submit:hover {
    background: #6ab8de;
}

/* —— Game entry —— */
.page.game {
    padding-top: 24px;
}

.page.game .game-back {
    width: 100%;
    margin: 0 0 16px;
}

.page.game .game-back a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
}

.page.game .game-card {
    width: 100%;
    background: #fff9d7;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 24px 18px;
    text-align: center;
}

.page.game .game-card--crush {
    background: #f7c6d2;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.page.game .game-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: #1a1a1a;
}

.page.game .game-desc {
    margin: 0 0 14px;
    color: #333;
    font-size: 0.95rem;
}

.page.game .game-ticket-count {
    margin: 0 0 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.page.game .btn-game-start,
.page.game .btn-game-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}

.page.game .btn-game-start {
    background: #7ec8e8;
    color: #1a1a1a;
    border: 2px solid #5ab0d0;
}

.page.game .btn-game-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.page.game .btn-game-start:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.page.game .game-empty {
    margin: 0 0 14px;
    color: #c41e3a;
    font-size: 0.95rem;
}

.page.game .game-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.page.game .game-meta--top {
    justify-content: center;
    margin-bottom: 8px;
    color: #6e2740;
    font-weight: 700;
}

.page.game .hud-wrap {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.page.game .hud-pill {
    min-width: 98px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.45);
    color: #7d3350;
}

.page.game .hud-pill small {
    display: block;
    font-size: 0.65rem;
    line-height: 1;
}

.page.game .hud-pill strong {
    display: block;
    margin-top: 2px;
    font-size: 1rem;
    line-height: 1;
}

.page.game .phaser-game {
    margin: 0 auto 18px;
    max-width: 330px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
}

.page.game .phaser-game canvas {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.gameover-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gameover-modal[hidden] {
    display: none;
}

.gameover-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 20, 30, 0.65);
}

.gameover-modal__panel {
    position: relative;
    width: 100%;
    max-width: 300px;
    padding: 28px 22px;
    background: #fff9fb;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 36px rgba(80, 30, 50, 0.25);
}

.gameover-modal__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #7d3350;
}

.gameover-modal__desc {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: #6e2740;
}

.gameover-modal__score {
    margin: 0 0 22px;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.gameover-modal__score strong {
    font-size: 1.6rem;
    color: #c41e3a;
}

.gameover-modal .btn-game-start {
    width: 100%;
}

.gameover-modal .btn-game-start:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* —— User prizes (我的卡券) —— */
.page.user-prizes {
    padding-top: 24px;
    width: 100%;
}

.page.user-prizes .user-prizes-back {
    width: 100%;
    margin: 0 0 20px;
}

.page.user-prizes .user-prizes-back a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}

.page.user-prizes .user-prizes-empty {
    margin: 0;
    color: #fff;
    text-align: center;
}

.page.user-prizes .user-prizes-select {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page.user-prizes .user-prize-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.page.user-prizes .user-prize-btn__label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
}

.page.user-prizes .user-prize-btn--prize .user-prize-btn__label {
    color: #c41e3a;
}

.page.user-prizes .user-prize-btn--used {
    opacity: 0.7;
}

.page.user-prizes .user-prize-btn__badge {
    font-size: 0.75rem;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 999px;
}

.page.user-prizes-show .user-prizes-show__title {
    width: 100%;
    margin: 0 0 20px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.page.user-prizes-show .redemption-used-notice {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    text-align: center;
    color: #666;
}

.redeemed-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.redeemed-modal[hidden] {
    display: none;
}

.redeemed-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.redeemed-modal__panel {
    position: relative;
    width: 100%;
    max-width: 320px;
    padding: 24px 20px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.redeemed-modal__title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: #1a1a1a;
}

.redeemed-modal__datetime {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.redeemed-modal__close {
    display: inline-block;
    min-width: 120px;
    padding: 12px 24px;
    background: #1e4f8a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.redeemed-modal__close:hover {
    background: #163d6e;
}

.page.user-prizes-show .redemption-prize-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
}

.page.user-prizes-show .redemption-terms {
    width: 100%;
    margin-bottom: 24px;
    color: #fff;
}

.page.user-prizes-show .redemption-terms__body {
    font-size: 0.9rem;
    line-height: 1.6;
}

.page.user-prizes-show .redemption-terms__body p {
    margin: 0 0 10px;
    font-weight: 700;
}

.page.user-prizes-show .redemption-terms__body ol,
.page.user-prizes-show .redemption-terms__body ul {
    margin: 0;
    padding-left: 1.25rem;
}

.page.user-prizes-show .redemption-staff {
    width: 100%;
    padding: 20px 18px;
    background: rgba(15, 45, 90, 0.85);
    border-radius: 16px;
    color: #fff;
}

.page.user-prizes-show .redemption-staff__heading {
    margin: 0 0 14px;
    font-weight: 700;
    font-size: 1rem;
}

.page.user-prizes-show .redemption-staff .form-messages {
    margin-bottom: 12px;
}

.page.user-prizes-show .redemption-staff__input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 6px;
}

.page.user-prizes-show .redemption-staff .field-error {
    color: #ffb3b3;
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.page.user-prizes-show .redemption-staff__submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 8px;
    background: #e85d7a;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.page.user-prizes-show .redemption-staff__submit:hover {
    background: #d94d6a;
}

.page.user-prizes-show .redemption-staff__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.page.user-prizes-show .redemption-staff__hint {
    margin: 14px 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.page.user-prizes-show .redemption-online {
    width: 100%;
    padding: 28px 20px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
}

.page.user-prizes-show .redemption-online__label {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #555;
}

.page.user-prizes-show .redemption-online__code {
    margin: 0 0 14px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1e4f8a;
}

.page.user-prizes-show .redemption-online__hint {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* —— Leaderboard —— */
.page.campaign-page.campaign-leaderboard .leaderboard-card {
    margin-bottom: 0.85rem;
    padding: 1rem 0.75rem 0.85rem;
    background: #ffffff;
    border: 3px solid #F28B9D;
    border-radius: 1.35rem;
}

.page.campaign-page.campaign-leaderboard .leaderboard-card__title {
    margin: 0 0 0.85rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    color: #F28B9D;
}

.page.campaign-page.campaign-leaderboard .leaderboard-card__title-star {
    color: #FBB040;
}

.page.campaign-page.campaign-leaderboard .leaderboard-card__message {
    /* margin: 1.5rem 0 0.75rem; */
    /* margin: 1.5rem 0 0rem; */
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    color: #754c29;
}

.page.campaign-page.campaign-leaderboard .leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) auto 3.2rem;
    align-items: center;
    gap: 0.4rem 0.45rem;
    min-height: 4.1rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f3f3f3 0%, #e3e3e3 100%);
}

.page.campaign-page.campaign-leaderboard .leaderboard-item--rank-1 {
    background: linear-gradient(180deg, #fff4c8 0%, #f2d56e 100%);
}

.page.campaign-page.campaign-leaderboard .leaderboard-item--rank-2 {
    background: linear-gradient(180deg, #dff6f8 0%, #9fd9df 100%);
}

.page.campaign-page.campaign-leaderboard .leaderboard-item--rank-3 {
    background: linear-gradient(180deg, #e8f6d8 0%, #b8d98e 100%);
}

.page.campaign-page.campaign-leaderboard .leaderboard-item--me {
    box-shadow: inset 0 0 0 2px #F28B9D;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__medal {
    display: block;
    width: 2.1rem;
    height: auto;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__rank-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: #8a8a8a;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__body {
    min-width: 0;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__name {
    margin: 0 0 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    color: #333333;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__prize-label {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.35;
    color: #555555;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__score {
    flex-shrink: 0;
    min-width: 4.5rem;
    padding: 0.3rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff6b8 0%, #f6d34f 100%);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    color: #333333;
    white-space: nowrap;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__prize-btn {
    display: block;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 0.35rem;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__prize-btn:focus-visible {
    outline: 2px solid #F28B9D;
    outline-offset: 2px;
}

.page.campaign-page.campaign-leaderboard .leaderboard-item__prize {
    display: block;
    width: 3.2rem;
    height: 3.2rem;
    object-fit: cover;
    border-radius: 0.35rem;
    background: #ffffff;
}

.page.campaign-page.campaign-leaderboard .leaderboard-my-score {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 3px solid #F28B9D;
    border-radius: 1.35rem;
}

.page.campaign-page.campaign-leaderboard .leaderboard-my-score__icon {
    display: block;
    width: 2.5rem;
    height: auto;
}

.page.campaign-page.campaign-leaderboard .leaderboard-my-score__label {
    justify-self: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #F28B9D;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    white-space: nowrap;
}

.page.campaign-page.campaign-leaderboard .leaderboard-my-score__value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #8a8a8a;
    white-space: nowrap;
}

/* ── Campaign layout (shared header + pink home) ── **/

body.campaign-body {
    background: #FFC4CF;
}

.page.campaign-page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 0px;
    background: #FFC4CF;
    color: #1a1a1a;
    overflow-x: hidden;
}

.page.campaign-page .alert {
    position: absolute;
    top: 12px;
    left: 16px;
    right: 16px;
    margin: 0;
    width: calc(100% - 32px);
    z-index: 20;
}

.page.campaign-page .alert-dismissible {
    position: absolute;
    padding-right: 2.25rem;
}

.page.campaign-page .alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    opacity: 0.75;
}

.page.campaign-page .alert-dismissible .btn-close:hover {
    opacity: 1;
}

.campaign-header {
    z-index: 2;
    background: #FFC4CF;
}

.campaign-header__bg {
    display: block;
    width: 100%;
}

.campaign-header__content {
    margin-top: clamp(-4rem, -13vw, -1.25rem);
    padding: 0 2.5rem 0.75rem;
}

.campaign-header__brand {
    max-width: 22rem;
}

.campaign-header__logo {
    display: block;
}

.campaign-header__back {
    top: 0.5rem;
    left: 0.25rem;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    z-index: 5;
}

.campaign-header__back:hover {
    color: #fff;
    opacity: 0.85;
}

.campaign-main {
    position: relative;
    z-index: 1;
    max-width: 480px;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

.home-hero {
    line-height: 0;
}

.page.campaign-page.campaign-coffee-gwp .coffee-gwp-hero {
    line-height: 0;
    margin-bottom: 0.5rem;
}

.page.campaign-page.campaign-coffee-gwp .coffee-gwp-hero__image {
    width: 100%;
    max-width: 100%;
}

.home-shop {
    max-width: 360px;
}

.dashboard-shop {
    max-width: 360px;
}

.dashboard-card {
    line-height: 0;
}

.dashboard-card__welcome {
    position: absolute;
    top: 9%;
    left: 0;
    right: 0;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    color: #7a5c42;
}

.dashboard-card__stats {
    position: absolute;
    top: 27%;
    left: 8%;
    right: 32%;
    display: grid;
    grid-template-columns: max-content auto;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    align-items: center;
    line-height: 1.35;
}

.dashboard-card__stat {
    display: contents;
}

.dashboard-card__label {
    justify-self: start;
    width: fit-content;
    padding: 0.15rem 1.3rem;
    background: #918475;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.dashboard-card__value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
    justify-self: start;
}

.dashboard-card__number {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    color: #a09080;
}

.dashboard-card__unit {
    font-size: 0.85rem;
    font-weight: 700;
    color: #7a5c42;
}

.dashboard-card__cat {
    position: absolute;
    right: -4%;
    bottom: -12%;
    width: 28%;
    pointer-events: none;
}

.dashboard-logout {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dashboard-logout:hover {
    color: #fff;
    opacity: 0.9;
}

.page.campaign-page.campaign-game {
    overflow: visible;
}

.game-intro-stage {
    position: relative;
    margin-bottom: 0.75rem;
}

.game-intro-hero {
    line-height: 0;
    max-width: 50%;
    margin: 0 auto;
}

.game-intro-wrap {
    position: relative;
    max-width: 22rem;
    margin: -8.5rem auto 0;
    padding: 1.1rem 0.5rem 0;
    z-index: 2;
}

.game-intro-star {
    position: absolute;
    top: 0;
    left: -0.35rem;
    width: 2.75rem;
    z-index: 3;
    pointer-events: none;
}

.game-intro-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 3px solid #c96d7e;
    border-radius: 1rem;
    padding: 1.25rem 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(201, 109, 126, 0.15);
}

.game-intro-box__title {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #F28B9D;
}

.game-intro-box__text {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #754C29;
}

.game-intro-scores {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.8rem;
    color: #754C29;
    line-height: 1.7;
}

.game-intro-scores strong {
    font-weight: 700;
    font-size:0.9rem;
    color: #754C29;
}

.game-intro-scores__number {
    color: #F28B9D;
    font-size: 0.9rem;
    font-weight: 700;
}

.game-intro-ticket {
    display: inline-grid;
    grid-template-columns: max-content auto;
    column-gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.game-intro-ticket__label {
    padding: 0.15rem 1.3rem;
    background: #F28B9D;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.game-intro-ticket__value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
}

.game-intro-ticket__number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.15rem 0;
    color: #F28B9D;
}

.game-intro-ticket__unit {
    font-size: 0.85rem;
    font-weight: 700;
    color: #754C29;
}

.game-intro-note {
    margin: 0;
    font-size: 0.8rem;
    color: #754C29;


}

.game-intro-deco {
    position: absolute;
    pointer-events: none;
}

.game-intro-deco--cat {
    right: -1.5rem;
    top: 52%;
    transform: translateY(-50%);
    width: 4.75rem;
    z-index: 3;
}

.game-start-form {
    position: relative;
    z-index: 1;
    max-width: 200px;
    margin: 0 auto 0.5rem;
}

.game-start-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 0;
}

.game-start-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.game-intro-bottom {
    line-height: 0;
    width: 108%;
    max-width: none;
    margin: 0 -4% 0.25rem;
}

/* —— Game play —— */

.page.campaign-page.campaign-game-play {
    overflow: visible;
}

/* —— Spending upload —— */

.page.campaign-spending .spending-form-wrap {
    margin: 0 auto 2rem;
    max-width: 22rem;
}

.page.campaign-spending .spending-form-box {
    z-index: 1;
    margin-bottom: 0;
}

.page.campaign-page.campaign-spending .campaign-form-box__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F28B9D;
}

.page.campaign-page.campaign-spending .campaign-form-box__hint {
    font-weight: 400;
    color: #888;
}

.page.campaign-spending .form-messages {
    margin-bottom: 1rem;
}

.page.campaign-spending .spending-field {
    margin-bottom: 1.1rem;
}

.page.campaign-page.campaign-spending .campaign-form-box .spending-field__label {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #754c29;
}

.page.campaign-page.campaign-spending .campaign-form-box .spending-field__required {
    color: #c41e3a;
    font-weight: 700;
}

.page.campaign-page.campaign-spending .campaign-form-box .spending-field__hint {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    line-height: 1.45;
}

.page.campaign-page.campaign-spending .campaign-form-box .spending-field__hint--date {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.page.campaign-spending .spending-channel {
    display: flex;
    gap: 1.5rem;
}

.page.campaign-page.campaign-spending .campaign-form-box .spending-channel__option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
    cursor: pointer;
}

.page.campaign-spending .spending-channel__option input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #4a9e4a;
}

.page.campaign-spending .spending-order-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.page.campaign-page.campaign-spending .campaign-form-box .spending-order-label-row label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #754c29;
}

.page.campaign-page.campaign-spending .campaign-form-box .spending-invoice-link {
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    color: #2f6fad;
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

.page.campaign-spending .spending-invoice-link[hidden] {
    display: none;
}

.page.campaign-spending .spending-order-upload-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.page.campaign-spending .spending-order-upload-row input[type="text"] {
    flex: 1;
    min-width: 0;
}

.page.campaign-spending .spending-btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    background: #6b3096;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0.4rem;
    white-space: nowrap;
    cursor: pointer;
}

.page.campaign-spending .file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.page.campaign-spending .spending-upload-filename {
    margin: 0.35rem 0 0;
    font-size: 0.7rem;
    color: #888;
}

.page.campaign-spending .form-group {
    margin-bottom: 0.85rem;
}

.page.campaign-spending .form-group:last-child {
    margin-bottom: 0;
}

.page.campaign-page.campaign-spending .campaign-form-box .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #754c29;
}

.page.campaign-spending .form-group input[type="text"] {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    font-size: 0.95rem;
}

.page.campaign-spending .purchase-date-input {
    cursor: pointer;
    background-color: #fff;
}

.page.campaign-spending .spending-terms {
    margin: 1rem 0 0;
}

.page.campaign-page.campaign-spending .campaign-form-box .spending-terms label {
    font-size: 0.75rem;
    font-weight: 400;
    color: #555;
}

.page.campaign-page.campaign-spending .campaign-form-box .spending-terms-link {
    color: #754c29;
    font-weight: 400;
    text-decoration: underline;
}

.page.campaign-spending .invoice-sample-modal,
.page.campaign-leaderboard .invoice-sample-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page.campaign-spending .invoice-sample-modal[hidden],
.page.campaign-leaderboard .invoice-sample-modal[hidden] {
    display: none;
}

.page.campaign-spending .invoice-sample-modal__backdrop,
.page.campaign-leaderboard .invoice-sample-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.page.campaign-spending .invoice-sample-modal__panel,
.page.campaign-leaderboard .invoice-sample-modal__panel {
    position: relative;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 20px 16px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.page.campaign-spending .invoice-sample-modal__title,
.page.campaign-leaderboard .invoice-sample-modal__title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.page.campaign-spending .invoice-sample-modal__image,
.page.campaign-leaderboard .invoice-sample-modal__image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.page.campaign-spending .invoice-sample-modal__close,
.page.campaign-leaderboard .invoice-sample-modal__close {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 16px;
    background: #FFC4CF;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.page.campaign-spending .invoice-sample-modal__close:hover,
.page.campaign-leaderboard .invoice-sample-modal__close:hover {
    opacity: 0.92;
}

.game-play-desc-wrap {
    position: relative;
    margin: 0 0 0.75rem;
    padding-left: 1.75rem;
}

.game-play-plane {
    position: absolute;
    left: 0;
    top: 0rem;
    width: 2rem;
    pointer-events: none;
}

.game-play-desc {
    margin: 0;
    font-size: 0.80rem;
    line-height: 1.55;
    color: #754C29;
}

.game-play-ticket-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3.5rem;
    padding-right: 3.5rem;
}

.game-play-ticket-wrap .game-intro-ticket {
    margin-bottom: 0;
}

.game-play-cat {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3.75rem;
    pointer-events: none;
}

.game-play-hud {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.game-play-hud__item {
    position: relative;
    flex: 1;
    max-width: 10.5rem;
    line-height: 0;
}

.game-play-hud__content {
    position: absolute;
    right: 29%;
    top: 55%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    line-height: 1;
}

.game-play-hud__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #754C29;
    text-align: center;
    text-transform: uppercase;
    display: block;
    margin: 0 auto;
}

.game-play-hud__value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #754C29;
    display: block;
    margin: 0 auto;
}

.game-play-board {
    max-width: 22rem;
    margin: 0 auto 0.75rem;
    padding: 0.5rem;
    background: #fff;
    border: 3px solid #c96d7e;
    border-radius: 1rem;
    box-shadow: 0 0 0 1px rgba(201, 109, 126, 0.15);
}

.page.campaign-game-play .phaser-game {
    line-height: 0;
    display: flex;
    justify-content: center;
}

.page.campaign-game-play .phaser-game canvas {
    display: block;
    margin: 0 auto;
    border-radius: 0.5rem;
    max-width: 100%;
}

.home-details-link:hover {
    color: #fff;
    opacity: 0.9;
}

.page.campaign-page.campaign-home .activity-details-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.page.campaign-page.campaign-home .activity-details-modal[hidden] {
    display: none;
}

.page.campaign-page.campaign-home .activity-details-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.page.campaign-page.campaign-home .activity-details-modal__panel {
    position: relative;
    width: 100%;
    max-width: 22rem;
    padding: 2rem 1.15rem 2rem;
    background: #ffffff;
    border: 3px solid #F28B9D;
    border-radius: 1.35rem;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    overflow: visible;
}

.page.campaign-page.campaign-home .activity-details-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #F28B9D;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transform: translate(30%, -30%);
}

.page.campaign-page.campaign-home .activity-details-modal__close:hover {
    opacity: 0.9;
}

.page.campaign-page.campaign-home .activity-details-modal__title {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: #F28B9D;
}

.page.campaign-page.campaign-home .activity-details-modal__body {
    color: #5a4030;
}

.page.campaign-page.campaign-home .activity-details-modal__body p {
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.55;
}

.page.campaign-page.campaign-home .activity-details-modal__highlight {
    color: #6eb5c0;
}

.page.campaign-page.campaign-teaser .campaign-status-card {
    margin-bottom: 0.85rem;
    padding: 1.25rem 1rem 1.1rem;
    background: #ffffff;
    border: 3px solid #F28B9D;
    border-radius: 1.35rem;
}

.page.campaign-page.campaign-teaser .campaign-status-card__title {
    margin: 0 0 0.85rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    color: #F28B9D;
}

.page.campaign-page.campaign-teaser .campaign-status-card__message {
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #754c29;
}

.page.campaign-page.campaign-teaser .campaign-status-card__datetime {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
    color: #888;
}

.page.campaign-page .tnc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.page.campaign-page .tnc-modal[hidden] {
    display: none;
}

.page.campaign-page .tnc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.page.campaign-page .tnc-modal__panel {
    position: relative;
    width: 100%;
    max-width: min(480px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 1.5rem 1.25rem 1.25rem;
    background: #ffffff;
    border: 3px solid #F28B9D;
    border-radius: 1.35rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page.campaign-page .tnc-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #F28B9D;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    /* transform: translate(30%, -30%); */
}

.page.campaign-page .tnc-modal__close:hover {
    opacity: 0.9;
}

.page.campaign-page .tnc-modal__title {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #F28B9D;
    text-align: center;
    flex-shrink: 0;
}

.page.campaign-page .tnc-modal__body {
    overflow-y: auto;
    padding-right: 0.15rem;
    color: #5a4030;
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: left;
}

.page.campaign-page .tnc-modal__body p {
    margin: 0 0 0.65rem;
}

.page.campaign-page .tnc-modal__body h3 {
    margin: 0.85rem 0 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #754c29;
}

.page.campaign-page .tnc-modal__body ol {
    margin: 0 0 0.65rem;
    /* padding-left: 1.15rem; */
}

.page.campaign-page .tnc-modal__body ul {
    margin: 0.35rem 0 0.5rem;
    padding-left: 1rem;
}

.page.campaign-page .tnc-modal__body li {
    margin-bottom: 0.45rem;
}

.page.campaign-page .tnc-modal__body a {
    color: #754c29;
    word-break: break-all;
}

.page.campaign-page .register-terms-link {
    color: #754c29;
    text-decoration: underline;
}

.campaign-footer {
    line-height: 0;

    margin-top: auto;

}

.campaign-footer--leaderboard {
    position: relative;
}

.campaign-footer--leaderboard .campaign-footer__cat {
    display: block;
    width: 24%;
    max-width: 6rem;
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.campaign-footer--coupon-detail {
    position: relative;
}

.campaign-footer--coupon-detail .campaign-footer__cat {
    position: absolute;
    left: 6%;
    bottom: 0;
    z-index: 1;
    display: block;
    width: 26%;
    max-width: 7.25rem;
}

.register-hero {
    line-height: 0;
}

.register-hero__kv {
    display: block;
}

.register-form-wrap {
    margin: 0 auto 2.5rem;
    max-width: 22rem;
    padding-bottom: 3rem;
}

.page.campaign-page.campaign-register {
    position: relative;
}

.register-form-wrap__rainbow {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 120%;
    max-width: 28rem;
    z-index: 0;
    pointer-events: none;
}

.register-form-wrap .campaign-form-box {
    z-index: 2;
    margin-bottom: 0;
}

/* Campaign auth form (login / register) */

.page.campaign-page .campaign-form-box {
    margin: 1rem auto 2.5rem;
    padding: 1.5rem 1.25rem 1.75rem;
    max-width: 22rem;
    background: #fff;
    border: 3px solid #c96d7e;
    border-radius: 1rem;
    overflow: visible;
    box-shadow: 0 0 0 1px rgba(201, 109, 126, 0.15);
}

.page.campaign-page .campaign-form-box__title {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #F28B9D;
}

.page.campaign-page .campaign-form-box__hint {
    margin: 0 0 1.25rem;
    font-size: 0.8rem;
    color: #754C29;
    line-height: 1.5;
}

.page.campaign-page .campaign-form-box .form-group label {
    font-size: 0.8rem;
    /* font-weight: 600; */
    color: #754C29;
}

.page.campaign-page .campaign-form-box .form-group input,
.page.campaign-page .campaign-form-box .phone-row select {
    border-color: #ddd;
}

.page.campaign-page.campaign-register .campaign-form-box .phone-row select {
    color: #754C29;
}

.page.campaign-page.campaign-login .campaign-form-box .phone-row select {
    color: #754C29;
}

.page.campaign-page .campaign-form-box__submit {
    display: block;
    width: 100%;
    max-width: 11rem;
    margin: 0.75rem auto 0;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(180deg, #FFC4CF 0%, #f0b8c2 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.page.campaign-page .campaign-form-box__submit-btn {
    display: block;
    width: 100%;
    max-width: 12rem;
    margin: 0.75rem auto 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 0;
}

.page.campaign-page .campaign-form-box__submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.page.campaign-page .campaign-form-box__submit:hover {
    opacity: 0.92;
}

.page.campaign-page .campaign-form-box__deco {
    position: absolute;
    pointer-events: none;
}

.page.campaign-page .campaign-form-box__deco--goldfish {
    width: 6.5rem;
    top: -3.5rem;
    right: -3.25rem;
}

.page.campaign-page .campaign-form-box__deco--register-star {
    width: 3.8rem;
    top: -1.5rem;
    left: -1.8rem;
    z-index: 2;
}

.page.campaign-page .campaign-form-box__deco--bird {
    width: 5.5rem;
    bottom: 1.25rem;
    left: -3rem;
}

.page.campaign-page .campaign-form-box__deco--bird-girl {
    width: 6.5rem;
    bottom: -2rem;
    right: -2rem;
}

.page.campaign-page .campaign-form-box .checkbox-group label {
    font-size: 0.75rem;
    font-weight: normal;
    color: #754C29;
}

.page.campaign-page .campaign-form-box__deco--register-seagull {
    width: 3.5rem;
    top: 40%;
    left: -1.25rem;
}

.page.campaign-page .campaign-form-box__deco--register-girl {
    width: 6rem;
    bottom: -2rem;
    right: -1.75rem;
}

/* —— Coupons (我的卡券) —— */

.page.campaign-page.campaign-coupons .coupon-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding-top: 20px;
}

.page.campaign-page.campaign-coupons .coupon-empty {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #754c29;
}

.page.campaign-page.campaign-coupons .coupon-card {
    display: block;
    position: relative;
    padding: 0.85rem 0rem 0;
    margin-bottom: 1.35rem;
    background: #ffffff;
    border: 3px solid #F28B9D;
    border-radius: 1.35rem;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    overflow: visible;
}

.page.campaign-page.campaign-coupons .coupon-card--badged {
    padding-top: 0.85rem;
}

.page.campaign-page.campaign-coupons .coupon-card--used {
    background: #ececec;
    border-color: #c5c5c5;
}

.page.campaign-page.campaign-coupons .coupon-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border-radius: 50%;
    background: #F28B9D;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transform: translate(30%, -30%);
}

.page.campaign-page.campaign-coupons .coupon-card__badge--store {
    background: #A5CC93;
}

.page.campaign-page.campaign-coupons .coupon-card--used .coupon-card__badge {
    background: #b0b0b0;
}

.page.campaign-page.campaign-coupons .coupon-card__body {
    margin: 0.15rem 0 0.5rem;
    padding: 0 0.15rem;
}

.page.campaign-page.campaign-coupons .coupon-card--badged .coupon-card__body {
    margin-top: 0.15rem;
}

.page.campaign-page.campaign-coupons .coupon-card__text-prize {
    margin: 0;
    padding: 1rem 0.75rem;
    background: #d8e8a8;
    border-radius: 0.85rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    color: #2d2d2d;
}

.page.campaign-page.campaign-coupons .coupon-card__image {
    display: block;
    width: 70%;
    margin: 0 auto;
}

.page.campaign-page.campaign-coupons .coupon-card--used .coupon-card__image {
    filter: grayscale(1);
    opacity: 0.85;
}

.page.campaign-page.campaign-coupons .coupon-card__hint {
    margin: 0 0 0.4rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #754C29;
    padding-bottom: 20px;
}

.page.campaign-page.campaign-coupons .coupon-card__btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 2;
    display: block;
    width: calc(100% + 1.8rem);
    max-width: 150px;
    margin: 0;
    line-height: 0;
    transform: translate(-50%, 50%);
}

.page.campaign-page.campaign-coupons .coupon-disclaimer {
    margin: 0.75rem 0 0.5rem;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.5;
    font-weight: 600;
    color: #754C29;
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint {
    position: fixed;
    bottom: 15px;
    left: 50%;
    z-index: 12;
    width: 100%;
    max-width: 480px;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint[hidden] {
    display: block;
    opacity: 0;
    transform: translateX(-50%) translateY(0.5rem);
    visibility: hidden;
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint__bar {
    position: relative;
    padding: 0.45rem 0;
    /* background: #FFC4CF;
    border-top: 3px solid #E4002B;
    border-bottom: 3px solid #E4002B; */
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint__bar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 0.55rem;
    transform: translateY(-50%);
    /* background: #F28B9D; */
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint__pill {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    margin: 0 auto;
    padding: 0.3rem 1.1rem;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint__text {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    color: #F28B9D;
    white-space: nowrap;
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint__icon {
    position: relative;
    display: inline-block;
    width: 0.7rem;
    height: 0.55rem;
    flex-shrink: 0;
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint__icon::before,
.page.campaign-page.campaign-coupons .coupon-scroll-hint__icon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0.28rem;
    height: 0.28rem;
    border-right: 2px solid #F28B9D;
    border-bottom: 2px solid #F28B9D;
    transform: rotate(45deg);
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint__icon::before {
    left: 0;
}

.page.campaign-page.campaign-coupons .coupon-scroll-hint__icon::after {
    right: 0;
}

.page.campaign-page.campaign-coupons .coupon-bottom {
    line-height: 0;
    width: 108%;
    max-width: none;
    margin: 0 -4% 0.25rem;
}

.page.campaign-page.campaign-coupons-show .coupon-show-wrap {
    margin-bottom: 1rem;
}

.page.campaign-page.campaign-coupons-show .coupon-show-wrap--used {
    margin-bottom: 1rem;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card {
    position: relative;
    margin-bottom: 0;
    padding: 1rem 1rem 0.85rem;
    background: #ffffff;
    border: 3px solid #F28B9D;
    border-radius: 1.35rem;
    overflow: visible;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card--used {
    padding-bottom: 0.85rem;
    background: #ffffff;
    border-color: #c5c5c5;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__title {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    color: #F28B9D;
    -webkit-text-stroke: 1.5px #ffffff;
    paint-order: stroke fill;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__image {
    display: block;
    width: 70%;
    margin: 0 auto 0.75rem;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__barcode {
    /* margin: 0 0 0.65rem; */
    /* padding: 0.85rem 1rem; */
    /* background: #e8e8e8; */
    border-radius: 0.35rem;
    text-align: center;
    line-height: 0;
    width: 70%;
    margin: 0 auto;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__barcode-image {
    display: block;
    width: 100%;
    max-width: 16rem;
    height: auto;
    margin: 0 auto;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__code {
    margin: 0.5rem 0 0.75rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: #333333;
    word-break: break-all;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__expiry {
    margin: 0 0 0.85rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    color: #333333;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__terms {
    margin-bottom: 0;
    color: #333333;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__terms-heading {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
    color: #333333;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__terms-body {
    font-size: 0.72rem;
    line-height: 1.55;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__terms-body p {
    margin: 0 0 0.35rem;
    font-size: inherit;
    font-weight: 700;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__terms-body ol,
.page.campaign-page.campaign-coupons-show .coupon-show-card__terms-body ul {
    margin: 0;
    padding-left: 1.1rem;
}

.page.campaign-page.campaign-coupons-show .coupon-show-staff {
    margin-top: 0.85rem;
    padding-top: 0;
    border-top: 0;
}

.page.campaign-page.campaign-coupons-show .coupon-show-staff__heading {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #754c29;
}

.page.campaign-page.campaign-coupons-show .coupon-show-staff .form-messages {
    margin-bottom: 0.65rem;
}

.page.campaign-page.campaign-coupons-show .coupon-show-staff__input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.35rem;
    border: 1px solid #dddddd;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.page.campaign-page.campaign-coupons-show .coupon-show-staff .field-error {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    color: #c41e3a;
}

.page.campaign-page.campaign-coupons-show .coupon-show-staff__hint {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #888888;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__action--submit {
    display: block;
    /* width: 100%; */
    max-width: 150px;
    margin: 1.15rem auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
}

.page.campaign-page.campaign-coupons-show .coupon-show-card__redeemed-btn {
    display: block;
    max-width: 150px;
    margin: 1.15rem auto 0;
    line-height: 0;
}
