/* ===== wrap ===== */
.wrap {
    background-color: var(--color-bg);
    padding-bottom: 80px;
}

/* ===== 뒤로가기 헤더 ===== */
.st-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 54px;
    background-color: var(--color-white);
    border-bottom: 1px solid #F0F0F0;
}

.st-btn-back {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--color-text);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    width: 40px;
    display: flex;
    align-items: center;
}

.st-header-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
}

.st-header-right {
    width: 40px;
}

/* ===== 참여 전 소개 ===== */
.st-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
    background-color: var(--color-white);
    text-align: center;
}

.st-intro-icon {
    font-size: 44px;
}

.st-intro-title {
    margin: 8px 0 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text);
}

.st-intro-desc {
    margin: 8px 0 0;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-sub);
}

.st-intro-points {
    align-self: stretch;
    margin: 16px 0 0;
    padding: 14px 16px 14px 34px;
    border-radius: var(--border-radius);
    background-color: #FFFBEA;
    text-align: left;
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text);
}

.st-intro form {
    align-self: stretch;
}

.st-btn-start {
    width: 100%;
    margin-top: 18px;
    padding: 15px 0;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--color-primary);
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(230, 194, 0, 0.35);
}

.st-intro-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

.st-btn-share {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px 0;
    border: 1.5px solid #E6E6E6;
    border-radius: var(--border-radius);
    background-color: var(--color-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
}

.st-board.is-preview {
    opacity: 0.6;
}

/* 참여 전 미리보기엔 '다음' 표시를 하지 않는다 */
.st-board.is-preview .st-slot.is-next {
    border-style: solid;
    border-color: #E4E4EA;
}

.st-board.is-preview .st-slot.is-next::after {
    display: none;
}

.st-joined-banner {
    margin: 12px 16px 0;
    padding: 14px 16px;
    border-radius: var(--border-radius);
    background-color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

/* ===== 보상 지급 배너 ===== */
.st-reward-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 16px 0;
    padding: 14px 16px;
    border-radius: var(--border-radius);
    background-color: var(--color-primary);
    cursor: pointer;
}

.st-reward-banner-icon {
    font-size: 26px;
}

.st-reward-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.st-reward-banner-text strong {
    font-size: 14px;
    color: var(--color-text);
}

.st-reward-banner-text span {
    font-size: 12px;
    color: var(--color-text-sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-reward-banner-arrow {
    font-size: 20px;
    color: var(--color-text);
}

/* ===== 요약 ===== */
.st-summary {
    background-color: var(--color-white);
    padding: 20px 20px 18px;
}

.st-summary-count {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.st-summary-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-sub);
    margin-right: 6px;
}

.st-summary-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

.st-summary-unit {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.st-summary-next {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.st-summary-next-label {
    display: inline-block;
    margin: 6px 0 0;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: #FFF6C2;
    font-size: 12px;
    font-weight: 600;
    color: #7A6400;
}

.st-guide {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* ===== 스탬프판 ===== */
.st-board {
    margin: 12px 16px 0;
    padding: 8px 4px;
    border-radius: 20px;
    background-color: var(--color-white);
}

.st-board-canvas {
    position: relative;
    width: 100%;
    container-type: inline-size;
}

.st-path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.st-path path {
    fill: none;
    stroke: #EFEFF2;
    stroke-width: 20;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.st-slot {
    position: absolute;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 3px solid #E4E4EA;
    border-radius: 50%;
    background-color: #F4F4F7;
    font-family: inherit;
    font-size: 20px;
    font-size: 6cqw;
    font-weight: 700;
    color: #B5B5C0;
    line-height: 1;
}

.st-slot.is-reward {
    background-color: #FFFBEA;
    border-color: #F3E3A0;
    font-size: 24px;
    font-size: 7.5cqw;
}

.st-slot.is-stamped {
    cursor: pointer;
    border-color: var(--color-primary-dark);
    background-color: var(--color-primary);
    color: var(--color-text);
    font-size: 26px;
    font-size: 8cqw;
    box-shadow: 0 3px 8px rgba(230, 194, 0, 0.35);
}

.st-slot.is-next {
    border-style: dashed;
    border-color: var(--color-primary-dark);
}

.st-slot.is-next::after {
    content: attr(data-next);
    position: absolute;
    top: -10px;
    right: -6px;
    padding: 2px 6px;
    border-radius: 999px;
    background-color: var(--color-text);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
}

.st-store-name {
    position: absolute;
    transform: translateX(-50%);
    font-size: 11px;
    font-size: 3.2cqw;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-sub);
    text-align: center;
    word-break: keep-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    pointer-events: none;
}

.st-reward-label {
    position: absolute;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 999px;
    background-color: var(--color-text);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.st-reward-label.is-reached {
    background-color: var(--color-primary);
    color: var(--color-text);
}

/* ===== 스탬프 찍은 가게 ===== */
.st-list {
    margin: 12px 0 0;
    padding: 18px 16px 8px;
    background-color: var(--color-white);
}

.st-list-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.st-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F3F3;
    cursor: pointer;
}

.st-item:last-child {
    border-bottom: none;
}

.st-item-no {
    min-width: 22px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.st-item-emoji {
    font-size: 20px;
}

.st-item-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-item-date {
    font-size: 12px;
    color: var(--color-text-muted);
}

.st-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0 24px;
    text-align: center;
}

.st-empty-icon {
    font-size: 40px;
}

.st-empty p {
    margin: 10px 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-sub);
    white-space: pre-line;
}

.st-btn-browse {
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background-color: var(--color-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
}
