/* ===== 개발자 응원하기 (js/shell/support.js, 2026-12-01). 창 틀은 상점(.shop-wrap/.shop, topbar.css)을 같이 쓴다 ===== */

/* 메인 화면 맨 아래 카드: 조용하게, 가운데, 위아래 여백 넉넉히 */
.sp-card {
  display: flex; align-items: center; gap: 14px;
  width: fit-content; max-width: 100%; margin: clamp(36px, 6vw, 64px) auto clamp(8px, 2vw, 20px);
  padding: 10px 22px 10px 12px; border-radius: 999px; cursor: pointer; text-align: left;
  border: 1px solid rgba(232, 193, 96, .28);
  background: linear-gradient(180deg, #22121a, #120a0e);
  box-shadow: inset 0 1px 0 rgba(255, 241, 196, .12), 0 3px 0 #07040a, 0 12px 26px -12px rgba(0, 0, 0, .9);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.sp-card:hover { border-color: rgba(232, 193, 96, .6); transform: translateY(-1px); }
.sp-card:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 241, 196, .1), 0 1px 0 #07040a, 0 6px 14px -8px rgba(0, 0, 0, .9); }
.sp-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sp-card-copy { display: grid; gap: 1px; line-height: 1.3; }
.sp-card-copy small { font-size: 12px; color: var(--muted); }
.sp-card-copy b { font-size: 15px; font-weight: 800; color: #ffe7a6; }

/* 잔 */
.sp-cup { display: block; width: 168px; height: auto; margin: 0 auto; overflow: visible; }
.sp-cup.sm { width: 46px; flex: none; }
.sp-cup.sm .sp-steam { display: none; }
.sp-steam path { opacity: 0; stroke-dasharray: 60 120; animation: sp-steam 3.6s ease-in-out infinite; filter: blur(1.5px); }
.sp-steam path:nth-child(2) { animation-delay: 1.2s; }
.sp-steam path:nth-child(3) { animation-delay: 2.4s; }
@keyframes sp-steam {
  0% { opacity: 0; stroke-dashoffset: 60; transform: translateY(6px); }
  35% { opacity: .38; }
  100% { opacity: 0; stroke-dashoffset: -60; transform: translateY(-10px); }
}

/* 창 */
.sp { text-align: center; padding: clamp(28px, 5vw, 40px) clamp(20px, 5vw, 36px) clamp(24px, 4vw, 32px);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); /* dvh 를 모르는 옛 브라우저(예: Edge 103)도 창이 화면 안에 */ }
.sp-hero { margin: 4px auto 18px; }
.sp-title { margin: 0 auto; font-size: clamp(22px, 5.4vw, 26px); }
.sp-body { margin: 14px auto 0; max-width: 32em; font-size: 14.5px; line-height: 1.65; color: #d9c9cd; }

/* 카카오페이 버튼 (폰): 노란 판이 아래로 두께가 보이게 솟아 있다 */
.sp-pay {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; margin: 26px 0 0; padding: 0 20px; border-radius: 14px;
  font-size: 17px; font-weight: 900; color: #191600;
  background: linear-gradient(180deg, #fff27a, #fee500 45%, #f2d500);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 0 #b9a200, 0 14px 24px -10px rgba(254, 229, 0, .45);
  transition: transform .1s, box-shadow .1s;
}
.sp-pay:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 #b9a200, 0 6px 12px -8px rgba(254, 229, 0, .4); }
.sp-pay:focus-visible, .sp-here:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* QR (PC): 흰 판이 검은 창 위에 살짝 떠 있다 */
.sp-qr { display: none; margin: 26px 0 0; }
.sp-plate {
  display: inline-block; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #ffffff, #ece6e7);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08), 0 5px 0 #8d7f83, 0 20px 34px -14px rgba(0, 0, 0, .95);
}
.sp-plate img { display: block; width: 148px; height: 148px; image-rendering: pixelated; }
.sp-qr figcaption { margin: 16px 0 0; font-size: 13.5px; font-weight: 700; color: var(--text); }
.sp-here { display: inline-block; margin-top: 8px; padding: 4px 8px; font-size: 13px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.sp-note { margin: 22px auto 0; max-width: 32em; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* 마우스가 있는 넓은 화면 = PC: 버튼 대신 QR */
@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  .sp-pay { display: none; }
  .sp-qr { display: block; }
}
@media (max-width: 640px) {
  .sp { max-height: 90vh; max-height: 90dvh; }
  .sp-cup:not(.sm) { width: 138px; }
}
@media (max-height: 820px) and (min-width: 641px) {
  .sp { padding-top: 24px; padding-bottom: 22px; }
  .sp-cup:not(.sm) { width: 104px; }
  .sp-hero { margin: 0 auto 10px; }
  .sp-qr { margin-top: 18px; }
  .sp-plate img { width: 124px; height: 124px; }
  .sp-qr figcaption { margin-top: 12px; }
  .sp-note { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sp-steam path { animation: none; opacity: .22; } }
@media (max-width: 640px) and (max-height: 700px) {
  .sp { padding-top: 22px; }
  .sp-cup:not(.sm) { width: 104px; }
  .sp-hero { margin: 0 auto 8px; }
  .sp-pay { margin-top: 18px; }
  .sp-note { margin-top: 14px; }
}
@media (min-width: 641px) { .sp { width: min(460px, 100%); } }
@media (max-height: 680px) and (min-width: 641px) {
  .sp-cup:not(.sm) { width: 88px; }
  .sp-plate { padding: 10px; }
  .sp-plate img { width: 112px; height: 112px; }
}
