/* =========================================================
 * 트레카 랜깡 확률겜 (poca.html) 전용 스타일
 * 색은 아래 변수만 바꾸면 전체에 적용돼요.
 * ========================================================= */
@font-face { font-family: 'GeekbleMalrangiche'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/GeekbleMalang2WOFF2.woff2') format('woff2'); font-weight: normal; font-display: swap; }

.theme-poca {
  --pk-text: #333333;
  --pk-dark: #222222;
  --pk-gray: #757575;
  --pk-line: #777777;      /* 테두리 회색 */
  --pk-gray-bg: #F7F7F7;
  --pk-bg: #FAF1F5;        /* 연핑크 바탕 */
  --pk-card: #E5BBCB;      /* 회원 카드·인트로 버튼 */
  --pk-pink: #E36B98;      /* 진핑크 (글자·테두리) */
  --pk-pink-soft: #F0B3CB; /* 인트로 알약 글자 */
  --pk-blue: #BFD5F5;      /* 트레카 팩 파랑 */
  --pk-blue-text: #3A8AF8;
  --pk-blue-soft: #EAF2FD;
  color: var(--pk-text);
  font-weight: 300;
}
.theme-poca #app { background: #fff; }
.theme-poca button, .theme-poca input, .theme-poca select { font-family: var(--ff); color: var(--pk-text); }
.theme-poca .screen { background: #fff; }
.theme-poca .toast { background: rgba(51, 51, 51, .9); color: #fff; }

/* 공통 버튼 (알약 모양) */
.pk-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 320px; height: 50px; margin: 0 auto; box-sizing: border-box;
  border: 1.5px solid transparent; border-radius: 99px; background: var(--pk-bg); color: var(--pk-pink);
  font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease;
}
.pk-btn:active { transform: scale(.98); }
.pk-btn:disabled { opacity: .45; cursor: default; }
.pk-btn:disabled:active { transform: none; }
.theme-poca .pk-btn-line { background: var(--pk-bg); border-color: var(--pk-pink); color: var(--pk-pink); }
.theme-poca .pk-btn-white { background: #fff; border-color: var(--pk-pink); color: var(--pk-dark); }
.theme-poca .pk-btn-blue { background: var(--pk-blue); color: var(--pk-blue-text); }
.pk-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 28px; }
.pk-actions [hidden] { display: none; }
.pk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pk-link { border: 0; background: none; padding: 4px 2px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--pk-dark); cursor: pointer; }

/* ---------- 포카 (이름 카드 / 사진 카드) ---------- */
.pk-poca { position: relative; display: block; width: 100%; aspect-ratio: 540 / 834; container-type: inline-size; }
.pk-poca-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pk-poca-photo { position: absolute; left: 3.5%; top: 2.3%; width: 93%; height: 95.4%; object-fit: cover; border-radius: 4%; }
.pk-poca-name {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'GeekbleMalrangiche', var(--ff); font-weight: normal; line-height: 1; white-space: nowrap;
  font-size: calc(var(--k) * 1.9px);          /* 예전 브라우저용 */
  font-size: calc(var(--k) * 1cqw);
}
.pk-poca-name > span { grid-area: 1 / 1; }
.pk-poca-name .o { color: #fff; -webkit-text-stroke: .2em #fff; }
.pk-poca-name .m { color: #333; -webkit-text-stroke: .1em #333; }
.pk-poca-name .f { color: var(--c); }
.pk-poca.has-photo .pk-poca-name { place-items: end center; padding-bottom: 10%; box-sizing: border-box; }

/* 트레카 팩 찢는 선 (지그재그) */
.pk-clip-body { clip-path: polygon(0.0% 16%, 4.17% 13%, 8.33% 16%, 12.5% 13%, 16.67% 16%, 20.83% 13%, 25.0% 16%, 29.17% 13%, 33.33% 16%, 37.5% 13%, 41.67% 16%, 45.83% 13%, 50.0% 16%, 54.17% 13%, 58.33% 16%, 62.5% 13%, 66.67% 16%, 70.83% 13%, 75.0% 16%, 79.17% 13%, 83.33% 16%, 87.5% 13%, 91.67% 16%, 95.83% 13%, 100.0% 16%, 100% 100%, 0 100%); }

/* ---------- 1. 인트로 ---------- */
.theme-poca .screen-main, .theme-poca .screen-main .top-bar { background: var(--pk-bg); }
.pk-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 30px 24px 30px; text-align: center; }
.pk-pill { margin: 0; padding: 7px 22px; border-radius: 99px; background: #fff; color: var(--pk-pink-soft); font-size: 16px; font-weight: 600; }
.pk-title { margin: 16px 0 0; line-height: 0; }
.pk-title img { width: 230px; height: auto; }
.pk-hero { position: relative; width: 176px; aspect-ratio: 600 / 932; margin-top: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.pk-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pk-hero-body { z-index: 1; clip-path: polygon(0.0% 16%, 4.17% 13%, 8.33% 16%, 12.5% 13%, 16.67% 16%, 20.83% 13%, 25.0% 16%, 29.17% 13%, 33.33% 16%, 37.5% 13%, 41.67% 16%, 45.83% 13%, 50.0% 16%, 54.17% 13%, 58.33% 16%, 62.5% 13%, 66.67% 16%, 70.83% 13%, 75.0% 16%, 79.17% 13%, 83.33% 16%, 87.5% 13%, 91.67% 16%, 95.83% 13%, 100.0% 16%, 100% 100%, 0 100%); }
.pk-hero-top { z-index: 2; clip-path: polygon(0 0, 100% 0, 100.0% 16%, 95.83% 13%, 91.67% 16%, 87.5% 13%, 83.33% 16%, 79.17% 13%, 75.0% 16%, 70.83% 13%, 66.67% 16%, 62.5% 13%, 58.33% 16%, 54.17% 13%, 50.0% 16%, 45.83% 13%, 41.67% 16%, 37.5% 13%, 33.33% 16%, 29.17% 13%, 25.0% 16%, 20.83% 13%, 16.67% 16%, 12.5% 13%, 8.33% 16%, 4.17% 13%, 0.0% 16%); transform-origin: 90% 15%; }
.pk-hero-card { position: absolute; z-index: 0; left: 16%; top: 20%; width: 68%; }
/* 2초쯤: 윗부분이 천천히 찢겨 날아가고(1.2초), 포카가 윗부분만 살짝 올라와요 */
.pk-hero.is-torn .pk-hero-top { transform: translate(40px, -46px) rotate(16deg); opacity: 0; transition: transform 1.2s ease-out, opacity .9s ease-in .3s; }
.pk-hero.is-torn .pk-hero-card { transform: translateY(-17%); transition: transform 1s cubic-bezier(.25, 1.35, .5, 1) 1s; }
.pk-btn-main { margin-top: 30px; }
.theme-poca .pk-btn-main { background: #E4739E; color: #fff; }
.pk-sold { margin: 12px 0 0; font-size: 14px; color: var(--pk-dark); }
.pk-sold b { font-weight: 600; color: #E4739E; }
.pk-sold[hidden] { display: none; }
.pk-footer { background: var(--pk-bg); border-top-color: #EEDDE5; }

/* ---------- 2. 입력 ---------- */
.pk-body { flex: 1; display: flex; flex-direction: column; padding: 30px 26px 36px; }
.pk-h { margin: 0; font-size: 22px; font-weight: 600; color: var(--pk-text); }
.pk-sub { margin: 4px 0 16px; font-size: 15px; line-height: 1.5; color: var(--pk-text); }
.pk-h3 { margin: 40px 0 14px; font-size: 21px; font-weight: 600; }
.pk-label { display: block; margin: 14px 0 8px; font-size: 16px; font-weight: 600; }
.pk-field {
  width: 100%; height: 44px; border: 0; border-radius: 10px; padding: 0 14px; box-sizing: border-box;
  background: #fff; font-size: 15px; font-weight: 300; outline: none;
}
.pk-field::placeholder { color: #A5A5A5; }
.pk-field-line { border: 1.5px solid var(--pk-line); }
.pk-field-line:focus { border-color: var(--pk-pink); }
.pk-member { background: var(--pk-card); border-radius: 8px; padding: 14px 10px 18px; }
.pk-member-top { display: flex; justify-content: space-between; color: #fff; font-size: 12px; opacity: .85; }
.pk-member-top span:first-child { letter-spacing: 6px; }
.pk-member .pk-label { color: #fff; }
.pk-member .pk-label:first-of-type { margin-top: 18px; }
.pk-birth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pk-error { margin: 8px 0 0; font-size: 13px; color: #d4365c; }
.pk-member .pk-error { color: #fff; font-weight: 600; }
.pk-box { background: var(--pk-gray-bg); border-radius: 10px; padding: 6px 10px 18px; }
.pk-results { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pk-gresult {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px;
  border: 0; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.pk-gresult small { flex-shrink: 0; font-size: 13px; font-weight: 300; color: var(--pk-gray); }
.pk-gresult em { display: block; font-style: normal; font-size: 12px; font-weight: 300; color: var(--pk-gray); margin-top: 2px; }
.pk-empty { margin: 10px 2px 0; font-size: 14px; color: var(--pk-gray); }
.pk-reg-ask { margin: 12px 2px 0; font-size: 13px; color: var(--pk-gray); }
.pk-reg-ask .pk-link { font-size: 13px; }
.pk-picked-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 10px 14px; font-size: 16px; }
.pk-picked-row b { font-weight: 600; }
.pk-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.pk-chip {
  min-width: 0; height: 32px; padding: 0 4px; border: 1.5px solid var(--pk-line); border-radius: 99px; background: #fff;
  color: var(--pk-line); font-size: 14px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.theme-poca .pk-chip.is-on { background: var(--pk-bg); border-color: var(--pk-pink); color: var(--pk-pink); font-weight: 600; }
.pk-photo-link { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; margin-top: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.pk-photo-link b { font-size: 18px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; color: var(--pk-dark); }
.pk-photo-link span { font-size: 13px; color: var(--pk-dark); }
.pk-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pk-mode {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 118px; padding: 12px 6px;
  border: 1.5px solid #555; border-radius: 8px; background: #fff; text-align: center; cursor: pointer;
}
.pk-mode b { font-size: 18px; font-weight: 600; color: var(--pk-dark); }
.pk-mode span { font-size: 14px; line-height: 1.4; color: var(--pk-gray); }
.theme-poca .pk-mode.is-on { background: var(--pk-bg); border-color: var(--pk-pink); }
.theme-poca .pk-mode.is-on span { color: var(--pk-text); }
.pk-submit { margin-top: 40px; }

/* 그룹 등록 */
.pk-reg-row { display: grid; grid-template-columns: 1fr 1.2fr 36px; gap: 6px; margin-bottom: 8px; }
.pk-reg-del { border: 0; background: none; font-size: 20px; color: var(--pk-gray); cursor: pointer; }
.pk-add { align-self: flex-start; border: 0; background: none; padding: 6px 0; font-size: 15px; font-weight: 600; color: var(--pk-pink); cursor: pointer; }
.pk-similar { margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--pk-bg); }
.pk-similar p { margin: 0; }
.pk-similar-title { font-size: 15px; font-weight: 600; }
.pk-similar-sub { font-size: 13px; color: var(--pk-gray); margin-top: 4px !important; }

/* ---------- 2-2. 사진 ---------- */
.pk-note { margin: 18px 0 0; padding: 16px 16px 16px 30px; border-radius: 2px; background: var(--pk-gray-bg); font-size: 14px; line-height: 1.55; color: var(--pk-dark); }
.pk-note li + li { margin-top: 2px; }
.pk-photo-group { margin: 28px 0 12px; font-size: 16px; color: var(--pk-dark); }
.pk-photo-count { margin-left: 6px; color: var(--pk-pink); font-weight: 600; }
.pk-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.pk-slot {
  position: relative; aspect-ratio: 2 / 3; padding: 0; overflow: hidden; cursor: pointer;
  border: 1.5px dashed #555; border-radius: 10px; background: #fff;
}
.pk-slot.is-on { border: 2px solid var(--pk-pink); }
.pk-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-slot-plus { position: absolute; left: 0; right: 0; top: 40%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--pk-dark); text-align: center; }
.pk-slot-name { position: absolute; left: 0; right: 0; bottom: 8%; font-size: 15px; color: var(--pk-dark); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.pk-slot.is-on .pk-slot-name { bottom: 0; padding: 4px; background: rgba(255, 255, 255, .88); font-weight: 600; }

/* 사진 자르기 창 */
.pk-crop-box { gap: 10px; }
.pk-crop-title { margin: 0; font-size: 17px !important; font-weight: 600; color: var(--pk-dark) !important; }
.pk-crop-sub { margin: 0; font-size: 13px; }
.pk-crop-frame { position: relative; width: 220px; aspect-ratio: 2 / 3; margin: 6px auto 0; overflow: hidden; border-radius: 12px; background: #eee; touch-action: none; cursor: grab; outline: 2px solid var(--pk-pink); }
.pk-crop-frame img { position: absolute; left: 50%; top: 50%; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
#crop-zoom { width: 220px; margin: 4px auto; accent-color: var(--pk-pink); }

/* ---------- 3-A. 쇼핑몰 ---------- */
.pk-shop { flex: 1; display: flex; flex-direction: column; }
.pk-shop-visual { display: flex; justify-content: center; align-items: flex-end; gap: 14px; padding: 28px 0 24px; background: var(--pk-bg); }
.pk-shop-pack { width: 132px; height: auto; }
.pk-shop-card { width: 82px; height: auto; border-radius: 6px; transform: rotate(6deg); }
.pk-shop-info { padding: 20px 26px 0; }
.pk-tags { display: flex; gap: 6px; }
.pk-tags span { font-size: 12px; font-weight: 600; background: var(--pk-bg); color: var(--pk-pink); border-radius: 6px; padding: 3px 8px; }
.pk-tags span.is-blue { background: var(--pk-blue-soft); color: var(--pk-blue-text); }
.pk-shop-title { margin: 10px 0 0; font-size: 19px; font-weight: 600; }
.pk-shop-price { margin: 4px 0 0; font-size: 26px; font-weight: 600; }
.pk-shop-desc { margin: 6px 0 0; font-size: 14px; color: var(--pk-gray); }
.pk-qty-box { margin: 20px 26px 0; padding: 14px; border-radius: 10px; background: var(--pk-gray-bg); display: flex; flex-direction: column; gap: 12px; }
.pk-qty-row { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; }
.pk-stepper { display: flex; align-items: center; background: #fff; border-radius: 99px; overflow: hidden; border: 1.5px solid var(--pk-line); }
.pk-stepper button { width: 42px; height: 40px; border: 0; background: #fff; font-size: 22px; cursor: pointer; }
.pk-stepper input { width: 52px; height: 40px; border: 0; text-align: center; font-size: 18px; font-weight: 600; outline: none; }
.pk-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pk-quick button { height: 34px; border: 1.5px solid #ddd; border-radius: 99px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.theme-poca .pk-quick button.is-pink { background: var(--pk-bg); border-color: var(--pk-pink); color: var(--pk-pink); }
.pk-buybar { margin-top: auto; padding: 18px 26px 32px; display: flex; flex-direction: column; gap: 14px; }
.pk-sum { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; color: var(--pk-gray); }
.pk-sum b { font-size: 24px; font-weight: 600; color: var(--pk-dark); }

/* ---------- 3-B. 매장 ---------- */
.pk-store { flex: 1; display: flex; flex-direction: column; padding: 26px 26px 32px; }
.pk-store-info { margin: 0; padding: 12px; border-radius: 10px; background: var(--pk-gray-bg); text-align: center; font-size: 14px; line-height: 1.55; color: var(--pk-dark); }
.pk-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 17px; margin: 26px 2px 0; }
.pk-shelf-pack { position: relative; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s ease; }
.pk-shelf-pack img { display: block; width: 100%; height: auto; }
.pk-shelf-pack.is-on { transform: translateY(-5px); }
.pk-shelf-pack.is-on img { filter: drop-shadow(0 4px 7px rgba(58, 138, 248, .45)); }
.pk-badge { position: absolute; top: -9px; right: -9px; width: 23px; height: 23px; border-radius: 50%; background: #E4739E; color: #fff; font-size: 12px; font-weight: 600; display: none; align-items: center; justify-content: center; }
.pk-shelf-pack.is-on .pk-badge { display: flex; }
.pk-store-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 22px; font-size: 15px; color: var(--pk-dark); }
.pk-store-sum b { font-size: 18px; font-weight: 600; margin: 0 2px; }
.pk-store #store-buy { margin-top: auto; }

/* ---------- 4. 개봉 ---------- */
.pk-open { flex: 1; display: flex; flex-direction: column; padding: 22px 26px 32px; }
.pk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pk-stats div { background: var(--pk-gray-bg); border-radius: 10px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.pk-stats span { font-size: 12px; color: var(--pk-gray); }
.pk-stats b { font-size: 20px; font-weight: 600; }
.theme-poca .pk-stats .is-pink { background: var(--pk-bg); }
.theme-poca .pk-stats .is-pink span, .theme-poca .pk-stats .is-pink b { color: var(--pk-pink); }
.pk-hint { margin: 14px 0 0; font-size: 15px; text-align: center; color: var(--pk-gray); min-height: 1.4em; }
.pk-stage { position: relative; height: 350px; margin-top: 6px; }
.pk-stage-pack {
  position: absolute; z-index: 2; left: 50%; bottom: 0; width: 196px; height: auto; margin-left: -98px; pointer-events: none;
  clip-path: polygon(0.0% 16%, 4.17% 13%, 8.33% 16%, 12.5% 13%, 16.67% 16%, 20.83% 13%, 25.0% 16%, 29.17% 13%, 33.33% 16%, 37.5% 13%, 41.67% 16%, 45.83% 13%, 50.0% 16%, 54.17% 13%, 58.33% 16%, 62.5% 13%, 66.67% 16%, 70.83% 13%, 75.0% 16%, 79.17% 13%, 83.33% 16%, 87.5% 13%, 91.67% 16%, 95.83% 13%, 100.0% 16%, 100% 100%, 0 100%);
}
.pk-stage.is-new .pk-stage-pack { animation: pk-drop .35s ease-out; }
.pk-stage.is-new .pk-card { animation: pk-drop .35s ease-out; }
@keyframes pk-drop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.pk-card {
  position: absolute; z-index: 1; left: 50%; top: 82px; width: 146px; margin-left: -73px; padding: 0; border: 0; background: none; cursor: pointer;
  aspect-ratio: 540 / 834; perspective: 1000px; transition: transform .3s ease;
}
.pk-card.is-out { transform: translateY(-70px); }
.pk-card.is-flipped { z-index: 3; transform: translateY(-24px) scale(1.18); transition: transform .45s ease; }
.pk-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s ease; }
.pk-card.is-flipped .pk-card-inner { transform: rotateY(180deg); }
.pk-card-back, .pk-card-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pk-card-back img { width: 100%; height: 100%; display: block; }
.pk-card-front { transform: rotateY(180deg); }
.pk-card.is-fav .pk-card-front { filter: drop-shadow(0 0 10px rgba(227, 107, 152, .55)); }
.pk-fav-burst {
  position: absolute; z-index: 4; top: 0; left: 50%; transform: translateX(-50%) rotate(-4deg);
  background: var(--pk-pink); color: #fff; border-radius: 99px; padding: 9px 20px; font-size: 19px; font-weight: 600; white-space: nowrap;
  animation: pk-pop .35s ease;
}
.pk-fav-burst[hidden] { display: none; }
@keyframes pk-pop { from { transform: translateX(-50%) rotate(-4deg) scale(.6); opacity: 0; } to { transform: translateX(-50%) rotate(-4deg) scale(1); opacity: 1; } }
.pk-got { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; max-height: 176px; overflow-y: auto; }
.pk-mini { width: 50px; flex-shrink: 0; }
.pk-mini.is-fav { filter: drop-shadow(0 0 4px rgba(227, 107, 152, .7)); }
/* 남은 팩 한 번에 뜯기: 팩은 숨기고 뜯은 카드 전부를 4장씩 (페이지째 스크롤) */
.pk-open.is-all .pk-stage, .pk-open.is-all .pk-hint { display: none; }
.pk-open.is-all .pk-got { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-height: none; overflow: visible; margin-top: 18px; }
.pk-open.is-all .pk-mini { width: auto; }

/* ---------- 5. 결과 ---------- */
.theme-poca #screen-result { background: var(--pk-bg); }
.pk-result { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 28px 22px 36px; }
.pk-receipt { background: #fff; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.pk-receipt hr { width: 100%; margin: 0; border: 0; border-top: 1.5px dashed #BDBDBD; }
.pk-rc-shop { margin: 0; text-align: center; font-family: 'GeekbleMalrangiche', var(--ff); font-weight: normal; font-size: 40px; line-height: 1.1; color: var(--pk-pink); }
.pk-rc-shop-sub { margin: -6px 0 8px; text-align: center; font-size: 12px; letter-spacing: 3px; color: var(--pk-gray); }
.pk-rc-date { display: flex; justify-content: space-between; font-size: 13px; color: var(--pk-gray); }
.pk-rc-head, .pk-rc-item { display: grid; grid-template-columns: 1fr 46px 82px; gap: 6px; align-items: baseline; }
.pk-rc-head { font-size: 12px; color: var(--pk-gray); }
.pk-rc-head span + span, .pk-rc-item span + span { text-align: right; }
.pk-rc-item { font-size: 15px; }
.pk-rc-item span:first-child { font-weight: 600; word-break: keep-all; }
.pk-rc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 16px; }
.pk-rc-row b { font-weight: 600; }
.pk-rc-sum span { font-weight: 600; }
.pk-rc-sum b { font-size: 26px; }
.pk-rc-luck { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--pk-bg); }
.pk-rc-luck span { font-size: 16px; font-weight: 600; }
.pk-rc-luck b { font-size: 28px; font-weight: 600; color: var(--pk-pink); }
.pk-rc-thanks { margin: 4px 0 0; text-align: center; font-size: 11px; letter-spacing: 1px; color: var(--pk-gray); }
.pk-saju { margin-top: 8px; background: #fff; border-radius: 10px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.pk-saju p { margin: 0; }
.pk-saju-label { font-size: 14px; font-weight: 600; color: var(--pk-pink); }
.pk-saju-main { font-size: 22px; font-weight: 600; line-height: 1.4; word-break: keep-all; }
.pk-saju-main mark { background: var(--pk-bg); color: var(--pk-pink); padding: 0 4px; }
.pk-saju-sub { font-size: 16px; line-height: 1.55; }
.pk-saju-comment { display: flex; gap: 8px; align-items: flex-start; background: var(--pk-gray-bg); border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.55; color: var(--pk-dark); }
.pk-saju-comment svg { flex-shrink: 0; margin-top: 3px; }
.pk-end-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pk-end-btns .pk-btn { max-width: none; height: 52px; border-radius: 10px; font-size: 17px; }
.theme-poca .pk-btn-fill { background: var(--pk-pink); border-color: var(--pk-pink); color: #fff; }
.theme-poca .pk-btn-outline { background: transparent; border: 1px solid var(--pk-pink); color: var(--pk-dark); }
.pk-disclaimer { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--pk-gray); }

/* 창 (영수증 이미지 / 사진 자르기) */
.pk-modal { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pk-modal[hidden] { display: none; }
.pk-modal-box { width: 100%; max-width: 390px; max-height: 100%; overflow-y: auto; box-sizing: border-box; background: #fff; border-radius: 18px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.pk-modal-box > p { margin: 0; font-size: 14px; color: var(--pk-gray); }
#save-img img, #save-img canvas { width: 100%; height: auto; border-radius: 8px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .pk-card, .pk-card-inner, .pk-shelf-pack, .pk-btn, .pk-hero-top, .pk-hero-card { transition: none !important; }
  .pk-fav-burst, .pk-stage-pack, .pk-card { animation: none !important; }
}
