/* Public link page. Theme colors come from CSS variables set on <body>. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg, #eceef1);
  color: var(--text, #000);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; }

.lt-page {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 680px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 16px calc(32px + env(safe-area-inset-bottom));
  background: var(--bg, #eceef1);
  overflow-x: clip;
}
/* Two quiet, full-width ad spaces are part of the main page flow. */
.lt-ad-slot { min-width: 0; margin: 0; }
.lt-ad-top { padding-top: 16px; }
.lt-ad-bottom { margin: 24px 0 0; }
.lt-ad-space {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 100px;
  border-block: 1px solid rgba(0, 0, 0, .1);
  border-color: color-mix(in srgb, var(--text, #000) 12%, transparent);
}
.lt-ad-placeholder { padding: 12px; font-size: 11px; line-height: 1.5; letter-spacing: .08em; opacity: .5; }
.lt-ad-active { display: block; }
.lt-ad-frame { display: block; width: 100%; height: 100px; border: 0; overflow: hidden; }
.lt-ad-label { display: block; padding: 3px 0; text-align: center; font-size: 10px; line-height: 14px; opacity: .5; }
.lt-ad-footer { margin-top: 16px; text-align: center; font-size: 12px; opacity: .7; }
.lt-ad-footer a { color: inherit; text-underline-offset: 3px; }
.lt-privacy-page { width: min(100%, 680px); margin: 0 auto; padding: 32px 24px; background: #fff; color: #222; line-height: 1.8; overflow-wrap: anywhere; }
.lt-privacy-page h1 { font-size: 24px; }
.lt-privacy-page h2 { margin-top: 28px; font-size: 18px; }
.lt-privacy-page a { color: #315e9d; }
@media (min-width: 640px) {
  body { background: #a9aaad; background: color-mix(in srgb, var(--bg, #eceef1) 72%, #000); }
  .lt-page { margin: 40px auto; min-height: calc(100dvh - 80px); padding: 0 28px 40px; border-radius: 24px; }
  .lt-ad-space { min-height: 90px; }
}

/* Top bar */
.lt-top { position: relative; z-index: 2; display: flex; justify-content: flex-end; height: 64px; padding-top: 12px; }
.lt-iconbtn {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 12px;
  background: var(--btn, #fff); color: var(--btn-text, #000);
  cursor: pointer;
  transition: transform .15s ease;
}

/* Profile header */
.lt-header { position: relative; padding-top: 40px; text-align: center; }
.lt-stickers { position: absolute; inset: 0; pointer-events: none; }
.lt-sticker {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  transform: translate(-50%, -50%) rotate(var(--r));
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .14));
  user-select: none; -webkit-user-select: none;
}
.lt-emoji { display: grid; place-items: center; font-size: calc(var(--s) * .86); line-height: 1; }
.lt-avatar, .lt-name, .lt-bio, .lt-socials { position: relative; z-index: 1; }
.lt-avatar { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: rgba(0, 0, 0, .06); }
.lt-crop-image { position: absolute; display: block; max-width: none; object-fit: cover; }
.lt-name { margin: 16px 0 0; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.lt-bio { max-width: 420px; margin: 8px auto 0; font-size: 15px; line-height: 1.5; opacity: .75; white-space: pre-line; overflow-wrap: anywhere; }
.lt-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.lt-social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text, #000); transition: transform .15s ease; }

/* Support and private messages, directly below the social icons. */
.lt-support { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; }
.lt-support-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid currentColor; border-color: color-mix(in srgb, var(--text, #000) 18%, transparent); border-radius: 999px; color: var(--text, #000); background: color-mix(in srgb, var(--btn, #fff) 65%, transparent); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.lt-support-btn span { font-size: 20px; line-height: 1; }
.lt-support-btn:hover { background: var(--btn, #fff); }
.lt-modal-open { overflow: hidden; }
.lt-dialog { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 24px; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 24px; background: #fff; color: #222; font-family: inherit; box-shadow: 0 24px 80px #0003; }
.lt-dialog::backdrop { background: #16151b99; }
.lt-dialog [hidden] { display: none !important; }
.lt-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.lt-dialog h2 { margin: 0; font-size: 20px; }
.lt-dialog-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4f4f5; color: #555; font-size: 26px; cursor: pointer; }
.lt-form { display: grid; gap: 16px; }
.lt-field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.lt-input { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #dedee4; border-radius: 12px; color: #222; background: #fff; font-family: inherit; font-size: 16px; line-height: 1.5; }
textarea.lt-input { min-height: 130px; resize: vertical; }
.lt-input::placeholder { color: #92929e; }
.lt-form-hint { margin: 0; color: #71717a; font-size: 13px; line-height: 1.6; }
.lt-count { text-align: right; margin-top: -12px; }
.lt-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.6; color: #666; }
.lt-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #222; }
.lt-privacy { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.lt-privacy input { width: 18px; height: 18px; margin: 0; accent-color: #222; }
.lt-guestbook { display: grid; gap: 18px; }
.lt-guestbook:not([open]) { display: none; }
.lt-guestbook .lt-dialog-heading { margin-bottom: 0; }
.lt-guest-list { display: grid; gap: 28px; }
.lt-guest-entry { min-width: 0; }
.lt-guest-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lt-guest-head strong { min-width: 0; overflow-wrap: anywhere; }
.lt-guest-avatar { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: hsl(var(--avatar-hue) 62% 64%); }
.lt-guest-avatar::before { content: ''; position: absolute; width: 8px; height: 8px; top: 5px; left: 8px; border-radius: 50%; background: #fff; }
.lt-guest-avatar::after { content: ''; position: absolute; width: 16px; height: 12px; top: 14px; left: 4px; border-radius: 50% 50% 0 0; background: #fff; }
.lt-guest-body { margin: 5px 0 0 34px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.lt-guest-hidden { color: #92929e; }
.lt-guest-reply { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0 32px; }
.lt-guest-reply p { min-width: 0; margin: 0; padding-top: 1px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.lt-reply-arrow { flex: none; font-size: 20px; line-height: 24px; }
.lt-owner-badge { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; background: #5488ff; color: #fff; font-size: 14px; font-weight: 800; clip-path: polygon(50% 0%,61% 12%,77% 7%,82% 23%,98% 27%,92% 43%,100% 56%,87% 66%,86% 83%,68% 83%,57% 98%,44% 89%,28% 98%,22% 81%,5% 77%,12% 60%,0% 47%,14% 36%,13% 19%,32% 18%); }
.lt-guest-controls { display: flex; gap: 10px; }
.lt-guestbook > .lt-form-hint:empty { display: none; }
.lt-submit { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; padding: 12px 20px; border: 0; border-radius: 14px; background: #222; color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.lt-submit:disabled { opacity: .5; cursor: wait; }
.lt-form-error { margin: 0; color: #c53030; font-size: 13px; line-height: 1.5; }
.lt-form-error:empty { display: none; }
.lt-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lt-message-done { display: grid; gap: 16px; text-align: center; padding-top: 16px; }
.lt-message-done h3 { margin: 0; font-size: 20px; }
.lt-done-icon { font-size: 52px; color: #da6a92; }
.lt-dialog :focus-visible, .lt-support-btn:focus-visible { outline: 2px solid #7c3aed; outline-offset: 3px; }
/* Donation details and checkout share one accessible dialog. */
.lt-dialog.lt-donation { width: min(520px, calc(100% - 24px)); height: 85vh; height: 85dvh; max-height: 900px; padding: 0; border-radius: 28px; }
/* Keep the portrait image and donation controls together on desktop screens. */
@media (min-width: 640px) {
  .lt-dialog.lt-donation:not(.lt-checkout) { max-width: max(300px, calc((85dvh - 220px) * .75)); }
}
.lt-donation > .lt-dialog-heading { position: absolute; top: 14px; right: 14px; z-index: 2; margin: 0; }
.lt-donation .lt-dialog-close { background: #fffffff0; color: #222; box-shadow: 0 2px 12px #0001; }
.lt-donation-content, .lt-donation-form, .lt-donation-step { min-height: 100%; }
.lt-donation-content, .lt-donation-form { display: flex; flex-direction: column; }
.lt-donation-content { height: 100%; }
.lt-donation-form { flex: 1; }
.lt-donation-loading { padding: 72px 24px 24px; }
.lt-donation-step { display: flex; flex: 1; flex-direction: column; }
.lt-donation-hero { position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: radial-gradient(ellipse at 25% 20%, #e9e6df, transparent 70%), #f7f4ef; }
.lt-donation-hero img { position: absolute; width: calc(100% * var(--crop-scale-x, 1)); height: calc(100% * var(--crop-scale-y, 1)); max-width: none; left: calc((1 - var(--crop-scale-x, 1)) * var(--crop-x, 50%) + var(--crop-pan-x, 0%)); top: calc((1 - var(--crop-scale-y, 1)) * var(--crop-y, 35%) + var(--crop-pan-y, 0%)); object-fit: cover; object-position: var(--crop-x, 50%) var(--crop-y, 35%); }
.lt-donation-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, #fff0 40%, #ffffff50 67%, #ffffffdb 88%, #fff 100%); }
.lt-donation-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 30px; font-size: 72px; opacity: .65; }
.lt-donation-body { position: relative; display: grid; justify-items: stretch; gap: 12px; margin-top: auto; padding: 0 24px 26px; background: #fff; }
.lt-donation-body h2 { margin: 0 0 6px; text-align: center; font-size: 24px; line-height: 1.4; letter-spacing: -.7px; overflow-wrap: anywhere; }
textarea.lt-donation-message { min-height: 66px; resize: vertical; border-color: #afb2bd; }
.lt-donation .lt-submit { min-height: 54px; background: #000; }
.lt-donation .lt-submit:disabled { background: #969aa6; color: #e7e8ed; opacity: 1; cursor: not-allowed; }
.lt-amount { flex: 1; min-height: 40px; border: 1px solid #dedee4; border-radius: 10px; background: #fafafa; color: #444; font: inherit; font-size: 13px; cursor: pointer; }
.lt-checkout > .lt-dialog-heading { position: relative; top: auto; right: auto; padding: 18px 20px 0 24px; margin-bottom: 12px; }
.lt-checkout .lt-dialog-close { box-shadow: none; }
.lt-checkout .lt-donation-content { height: auto; min-height: 0; }
.lt-checkout[open] { display: flex; flex-direction: column; }
.lt-checkout .lt-donation-content { flex: 1; }
.lt-checkout .lt-donation-form { min-height: 0; }
.lt-payment-step { display: flex; flex: 1; flex-direction: column; padding: 0 24px 24px; gap: 16px; }
.lt-order-summary { display: flex; align-items: center; gap: 16px; }
.lt-order-summary .lt-amount { flex: none; margin-left: auto; padding: 0 12px; }
.lt-order-total { font-size: 22px; }
.lt-payment-email { position: relative; }
.lt-payment-email input { padding: 16px 72px 16px 16px; }
.lt-email-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #979cab; font-size: 13px; pointer-events: none; }
.lt-payment-email + .lt-form-hint { margin-top: -8px; font-size: 12px; }
.lt-payment-footer { margin-top: auto; padding-top: 20px; gap: 12px; }
.lt-payment-pending { padding: 12px 14px; margin: 0; border-radius: 12px; background: #f5f5f7; color: #6e7280; font-size: 13px; line-height: 1.6; }
.lt-payment-privacy { font-size: 12px; color: #737782; }
.lt-payment-privacy summary { cursor: pointer; }
.lt-payment-privacy p { padding-top: 8px; font-size: 12px; }
.lt-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; border: 0; }
.lt-methods legend { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.lt-method { position: relative; display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 54px; padding: 10px 6px; border: 1px solid #dedee4; border-radius: 12px; font-size: 13px; cursor: pointer; }
.lt-method input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lt-method:has(:checked) { border-color: #222; background: #222; color: #fff; }
.lt-method:has(:focus-visible) { outline: 2px solid #7c3aed; outline-offset: 2px; }
.lt-method-symbol { flex: none; font-weight: 800; font-size: 18px; }
.lt-method.naverPay .lt-method-symbol, .lt-method.kakaoPay .lt-method-symbol { padding: 1px 6px; border-radius: 20px; font-size: 12px; color: #102016; background: #03dc75; }
.lt-method.kakaoPay .lt-method-symbol { color: #1e1e1e; background: #ffdf00; }
.lt-method:has(:disabled) { opacity: .45; cursor: not-allowed; }
.lt-method input:disabled { cursor: not-allowed; }
.lt-method small { font-size: 10px; }
.lt-test-notice { padding: 12px; border-radius: 10px; margin: 0; background: #fff4d6; color: #705300; font-size: 13px; line-height: 1.5; }
.lt-payment-result { display: grid; gap: 18px; max-width: 460px; margin: 12vh auto; padding: 28px; border-radius: 24px; background: #fff; color: #222; }
.lt-payment-result h1 { margin: 0; font-size: 24px; }
.lt-payment-result p { margin: 0; font-size: 15px; line-height: 1.7; }
@media (max-width: 480px) { .lt-dialog { padding: 20px; } .lt-support-btn { padding-inline: 14px; } }

/* Link blocks */
.lt-blocks { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.lt-card {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 64px;
  border-radius: var(--radius, 8px);
  background: var(--btn, #fff);
  color: var(--btn-text, #000);
  transition: transform .15s ease;
}
.lt-link {
  flex: 1; align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 0; padding: 12px 56px;
  border-radius: inherit;
  color: inherit; text-align: center; text-decoration: none;
}
.lt-thumb {
  position: absolute; left: 8px; top: 50%;
  width: 48px; height: 48px; margin-top: -24px;
  border-radius: max(4px, calc(var(--radius, 8px) - 4px));
  overflow: hidden;
}
.lt-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  max-width: 100%;
  font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em;
  overflow-wrap: anywhere; text-wrap: balance;
}
.has-price .lt-title { -webkit-line-clamp: 1; }
.lt-price { font-size: 12px; line-height: 18px; opacity: .6; }
.lt-more {
  position: absolute; right: 8px; top: 50%;
  display: grid; place-items: center;
  width: 32px; height: 32px; margin-top: -16px; padding: 0;
  border: 0; border-radius: 50%;
  background: none; color: inherit; opacity: .5;
  cursor: pointer;
}
.lt-textcard { padding: 12px 32px; font-size: 16px; font-weight: 500; line-height: 1.25; text-align: center; text-wrap: balance; white-space: pre-line; overflow-wrap: anywhere; }
.lt-heading { margin: 12px 0 0; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.lt-heading:first-child { margin-top: 0; }

@media (hover: hover) {
  .lt-iconbtn:hover { transform: scale(1.05); }
  .lt-social:hover { transform: scale(1.1); }
  .lt-card:has(.lt-link):hover { transform: scale(1.02); }
  .lt-more:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
}
.lt-link:focus-visible, .lt-more:focus-visible, .lt-iconbtn:focus-visible, .lt-social:focus-visible { outline: 2px solid var(--text, #000); outline-offset: 2px; }

.lt-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 10;
  max-width: calc(100% - 32px); padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .92); color: #fff;
  font-size: 14px; overflow-wrap: anywhere;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}
.lt-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Admin live preview: stickers can be dragged into place. */
.lt-preview .lt-sticker { pointer-events: auto; cursor: grab; touch-action: none; }
.lt-preview .lt-sticker:hover { outline: 2px dashed rgba(124, 58, 237, .7); outline-offset: 2px; }
.lt-preview .lt-sticker:active { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  .lt-card, .lt-social, .lt-iconbtn, .lt-toast { transition: none; }
}

@media (max-width: 480px) {
  .lt-dialog.lt-donation { max-height: 85dvh; border-radius: 24px; }
  .lt-donation-body { padding: 0 20px 22px; }
  .lt-donation-body h2 { font-size: 23px; }
  .lt-payment-step { padding-inline: 20px; }
  .lt-checkout > .lt-dialog-heading { padding-left: 20px; }
  .lt-method { font-size: 12px; gap: 5px; }
}
