/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&display=swap");

:root {
  --paper-base: #f5f0e6;
  --paper-ink: #2f2a24;
  --paper-muted: #756d63;
  --card: #fffdf8;
  --line: #ddd2c2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--paper-ink);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.45), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.04), transparent 35%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0 2px, transparent 2px 5px),
    var(--paper-base);
}

main.mobile-shell {
  min-height: 100vh;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 18px 36px;
  overflow-x: hidden;
}

.paper-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(67, 53, 40, 0.14);
}

.font-script {
  font-family: "Dancing Script", "Segoe Script", cursive;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invitation-meta-row {
  height: 40px;
}

.meta-text {
  margin: 0;
  line-height: 1.2;
}

.meta-icon {
  width: 1.35em;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.polaroid {
  margin-top: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}

.polaroid img {
  width: 100%;
  border-radius: 8px;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.photo-upload-button {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.photo-upload-hint {
  margin: 6px 2px 0;
  text-align: center;
  font-size: 10px;
  color: #7b7066;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: #2e6342;
  color: #fff;
}

.btn-secondary {
  background: #ece4d8;
  color: #3f372d;
}

.btn-danger {
  background: #d64545;
  color: #fff;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.center {
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 380px) {
  main.mobile-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.editable-card-input {
  border: 0;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
  padding: 6px 4px;
  background: transparent;
}

.editable-card-input:focus {
  outline: none;
  border-bottom-color: #7b6a53;
}

.editable-card-input.title {
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1.1;
  margin-top: 6px;
  border-bottom: 0;
}

@media (max-width: 380px) {
  .editable-card-input.title {
    font-size: 30px;
  }
}

.upload-inline {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  width: 100%;
}

.file-input-hidden {
  display: none;
}

.upload-trigger {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #ccbda9;
  background: #fffdf9;
  color: #5a4b3d;
  letter-spacing: 0.01em;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 4px 10px rgba(73, 58, 42, 0.14);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.upload-trigger:hover {
  border-color: #bca98f;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 7px 14px rgba(73, 58, 42, 0.18);
}

.upload-trigger:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(73, 58, 42, 0.14);
}

.upload-file-name {
  font-size: 12px;
  color: #6e6257;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.05rem;
}

.card-carousel {
  position: relative;
  margin-top: 8px;
  padding: 8px 0;
  touch-action: pan-x;
  overflow: visible;
}

.invitation-card {
  position: relative;
  z-index: 2;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: none;
  will-change: transform;
}

.card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 32px;
  line-height: 1;
  background: transparent;
  color: #4d4338;
  z-index: 4;
}

.card-nav span {
  display: block;
  line-height: 1;
}

.card-nav.left {
  left: -24px;
}

.card-nav.right {
  right: -24px;
}

.ad-top {
  width: 100%;
  min-height: 70px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner-link {
  display: block;
  width: 100%;
}

.ad-banner-image {
  display: block;
  width: 100%;
  max-height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

.ad-placeholder-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 10px;
}

.ad-placeholder {
  width: 100%;
  min-height: 60px;
  border: 1px dashed #d8cdbf;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #7b7066;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
}

.ad-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ad-modal {
  width: 100%;
  max-width: 360px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.ad-modal-title {
  margin: 0 0 12px;
}

.ad-modal-line {
  margin: 0 0 8px;
}

.ad-email-copy {
  border: 0;
  border-radius: 8px;
  background: rgba(46, 99, 66, 0.12);
  color: #2e6342;
  padding: 3px 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.ad-modal-close {
  margin-top: 10px;
  width: 100%;
}

.ad-copy-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 70;
  background: rgba(35, 31, 26, 0.94);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
}

