/* ---------- tokens ---------- */
:root {
  --candy: #FF8FB8;
  --blue:  #9FD3FF;
  --sun:   #FFD36E;
  --cream: #FFF7F0;
  --ink:   #2D2A3A;
  --ink-soft: #5D5770;
  --mint:  #B6EBD6;
  --lilac: #D7C4FF;

  --shadow-card: 0 20px 50px -20px rgba(45, 42, 58, 0.25), 0 6px 16px -10px rgba(45, 42, 58, 0.15);
  --shadow-soft: 0 8px 24px -12px rgba(45, 42, 58, 0.18);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: 'Gaegu', 'Gowun Dodum', system-ui, sans-serif;
  --font-body: 'Gowun Dodum', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-num: 'Fredoka', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, #FFE0EC 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 100%, #DCF0FF 0%, transparent 60%),
    var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

/* ---------- background motifs ---------- */
.bg-motifs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.balloon {
  position: absolute;
  width: 70px;
  height: 90px;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  box-shadow: inset -8px -12px 0 rgba(0,0,0,0.08), inset 6px 8px 0 rgba(255,255,255,0.45);
  animation: float 12s ease-in-out infinite;
  opacity: 0.85;
}
.balloon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1.5px;
  height: 80px;
  background: var(--ink-soft);
  opacity: 0.25;
  transform: translateX(-50%);
}
.balloon::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-top: 5px solid currentColor;
  border-right: 5px solid currentColor;
  border-left: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0.85;
}
.balloon.b1 { left: 6%;  top: 12%;  background: var(--candy);  color: var(--candy);  animation-delay: 0s; }
.balloon.b2 { left: 90%; top: 18%;  background: var(--blue);   color: var(--blue);   animation-delay: -2s; width:56px; height:74px; }
.balloon.b3 { left: 14%; top: 70%;  background: var(--sun);    color: var(--sun);    animation-delay: -4s; width:50px; height:66px; }
.balloon.b4 { left: 82%; top: 62%;  background: var(--lilac);  color: var(--lilac);  animation-delay: -6s; }
.balloon.b5 { left: 50%; top: 4%;   background: var(--mint);   color: var(--mint);   animation-delay: -8s; width:46px; height:60px;}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-24px) rotate(3deg); }
}

.confetti {
  position: absolute;
  width: 10px; height: 16px;
  border-radius: 2px;
  opacity: 0.85;
  animation: drift 18s linear infinite;
}
.confetti.c1 { left: 10%; top: -5%;  background: var(--candy); animation-delay: 0s; transform: rotate(15deg); }
.confetti.c2 { left: 25%; top: -8%;  background: var(--blue);  animation-delay: -3s; transform: rotate(-20deg); }
.confetti.c3 { left: 45%; top: -2%;  background: var(--sun);   animation-delay: -6s; transform: rotate(45deg); }
.confetti.c4 { left: 65%; top: -6%;  background: var(--lilac); animation-delay: -9s; transform: rotate(-10deg); }
.confetti.c5 { left: 80%; top: -3%;  background: var(--mint);  animation-delay: -12s; transform: rotate(25deg); }
.confetti.c6 { left: 90%; top: -7%;  background: var(--candy); animation-delay: -15s; transform: rotate(-30deg); width:8px; height:8px; border-radius:50%; }
.confetti.c7 { left: 35%; top: -4%;  background: var(--blue);  animation-delay: -2s; border-radius:50%; width:8px; height:8px; }
.confetti.c8 { left: 70%; top: -5%;  background: var(--sun);   animation-delay: -8s; border-radius:50%; width:6px; height:6px; }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  5%   { opacity: 0.9; }
  100% { transform: translate(-80px, 120vh) rotate(720deg); opacity: 0; }
}

.sparkle {
  position: absolute;
  width: 24px; height: 24px;
  background:
    linear-gradient(to bottom, transparent 46%, #fff 46%, #fff 54%, transparent 54%),
    linear-gradient(to right, transparent 46%, #fff 46%, #fff 54%, transparent 54%);
  transform: rotate(45deg);
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #FFE8B3);
}
.sparkle.s1 { left: 20%; top: 30%; animation-delay: 0s; }
.sparkle.s2 { left: 75%; top: 40%; animation-delay: 1.3s; }
.sparkle.s3 { left: 55%; top: 80%; animation-delay: 2.6s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: rotate(45deg) scale(0.5); }
  50% { opacity: 0.9; transform: rotate(45deg) scale(1); }
}

/* ---------- shared ---------- */
#root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  padding: 40px 24px 120px;
  position: relative;
}

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 20px;
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 6px 0 0 rgba(45,42,58,0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 0 rgba(45,42,58,0.22); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 0 rgba(45,42,58,0.2); }

.btn-primary {
  background: linear-gradient(180deg, #FFA5C5 0%, var(--candy) 100%);
  color: #fff;
  box-shadow: 0 6px 0 0 #E06A96;
}
.btn-primary:hover { box-shadow: 0 8px 0 0 #E06A96; }
.btn-primary:active { box-shadow: 0 2px 0 0 #E06A96; }

.btn-blue {
  background: linear-gradient(180deg, #B7DFFF 0%, var(--blue) 100%);
  color: var(--ink);
  box-shadow: 0 6px 0 0 #6BADE0;
}
.btn-blue:hover { box-shadow: 0 8px 0 0 #6BADE0; }
.btn-blue:active { box-shadow: 0 2px 0 0 #6BADE0; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 0 0 rgba(45,42,58,0.1);
  border: 2px solid var(--ink);
}

/* ---------- INTRO ---------- */
.intro {
  max-width: 860px;
  margin: 0 auto;
}
.intro-hero {
  text-align: center;
  padding: 40px 16px 24px;
  position: relative;
}
.intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px dashed var(--candy);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--candy);
  font-size: 16px;
  letter-spacing: 0.5px;
}
.intro-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--candy);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:0.6} }

.intro-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.05;
  margin: 22px 0 10px;
  color: var(--ink);
}
.intro-title .pink { color: var(--candy); }
.intro-title .blue { color: #4FA2DD; }
.intro-title .wavy {
  display: inline-block;
  animation: wave 2.2s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%,100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

.intro-sub {
  max-width: 540px;
  margin: 10px auto 0;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.intro-cake {
  margin: 30px auto 8px;
  width: 220px;
  position: relative;
}
.intro-cake svg { width: 100%; height: auto; }

.name-board {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
  box-shadow: var(--shadow-card);
  border: 2px solid #fff;
  position: relative;
}
.name-board::before {
  content: '';
  position: absolute;
  top: -12px; left: 30px;
  width: 80px; height: 24px;
  background: var(--sun);
  border-radius: 6px;
  transform: rotate(-3deg);
  box-shadow: 0 3px 0 rgba(0,0,0,0.08);
}

.name-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.name-board-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin: 0;
}
.name-search {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  position: relative;
}
.name-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 999px;
  border: 2px solid #EEE7DD;
  background: var(--cream);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.name-search input:focus { border-color: var(--candy); }
.name-search::before {
  content: '🔍';
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; opacity: 0.6;
}

.team-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.team-chip {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
  color: var(--ink);
}
.team-chip:hover { transform: translateY(-1px); }
.team-chip.active { background: var(--ink); color: var(--cream); }

.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding: 4px 4px 8px;
  scrollbar-width: thin;
}

.name-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 14px 12px;
  border-radius: var(--radius-md);
  border: 2px solid #F1EAE0;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.name-card:hover {
  transform: translateY(-3px) rotate(-0.8deg);
  box-shadow: var(--shadow-soft);
  border-color: var(--candy);
}
.name-card .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
}
.name-card .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  line-height: 1.1;
}
.name-card .t {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.name-card.is-birthday {
  background: linear-gradient(180deg, #FFF0F6 0%, #FFE0EC 100%);
  border-color: var(--candy);
}
.name-card.is-birthday::after {
  content: '🎂';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 16px;
  animation: wiggle 1.6s ease-in-out infinite;
}
@keyframes wiggle {
  0%,100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
.name-card.locked { cursor: not-allowed; opacity: 0.6; }

.intro-footnote {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- CELEBRATE / CHAT ---------- */
.chat-shell {
  max-width: 460px;
  margin: 24px auto 40px;
  background: #fff;
  border-radius: 36px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 8px solid var(--ink);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  max-height: 820px;
  position: relative;
}
.chat-header {
  background: linear-gradient(135deg, var(--candy) 0%, #FFB3D0 60%, var(--blue) 130%);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.chat-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.5) 0 2px, transparent 3px);
  pointer-events: none;
}
.chat-back {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-back:hover { background: rgba(255,255,255,0.4); }

.chat-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.chat-title {
  flex: 1;
  z-index: 1;
}
.chat-title .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
}
.chat-title .status {
  font-size: 12px;
  opacity: 0.9;
  display: flex; align-items: center; gap: 6px;
}
.chat-title .status .live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7FFFB3;
  box-shadow: 0 0 0 4px rgba(127,255,179,0.35);
}

.chat-body {
  flex: 1;
  padding: 20px 16px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 15% 25%, #FFE9F2 0 10px, transparent 12px),
    radial-gradient(circle at 85% 40%, #DDEEFF 0 8px, transparent 10px),
    radial-gradient(circle at 25% 75%, #FFF3D0 0 12px, transparent 14px),
    radial-gradient(circle at 75% 85%, #E8DEFF 0 8px, transparent 10px),
    var(--cream);
}

.chat-daydivider {
  align-self: center;
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--ink-soft);
  margin: 6px 0;
}

.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 80%;
  animation: bubble-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bubble-in {
  from { transform: translateY(8px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.bubble-row.theirs { align-self: flex-start; }
.bubble-row.mine   { align-self: flex-end; flex-direction: row-reverse; }

.bubble-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.bubble-col { display: flex; flex-direction: column; gap: 2px; }
.bubble-row.mine .bubble-col { align-items: flex-end; }

.bubble-sender {
  font-size: 11px;
  color: var(--ink-soft);
  padding: 0 8px;
}
.bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
  max-width: 100%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
  border: 1.5px solid #F1EAE0;
}
.bubble-row.theirs .bubble { border-top-left-radius: 6px; }
.bubble-row.mine .bubble {
  background: linear-gradient(180deg, #FFA5C5 0%, var(--candy) 100%);
  color: #fff;
  border-top-right-radius: 6px;
  border-color: transparent;
}
.bubble-time {
  font-size: 10px;
  color: var(--ink-soft);
  padding: 0 8px;
}

.bubble.special {
  background: linear-gradient(135deg, #FFF3D0 0%, #FFE8E8 100%);
  border: 1.5px dashed var(--candy);
  position: relative;
}
.bubble.special::before {
  content: '🎁';
  position: absolute;
  left: -10px; top: -10px;
  background: #fff;
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-composer {
  background: #fff;
  border-top: 2px solid #F1EAE0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sticker-tray {
  display: flex;
  gap: 4px;
  padding: 8px 12px 2px;
  background: #fff;
  border-top: 2px solid #F1EAE0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sticker-tray::-webkit-scrollbar { display: none; }
.sticker {
  flex-shrink: 0;
  font-size: 22px;
  background: var(--cream);
  border: 1.5px solid #F1EAE0;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.12s;
}
.sticker:hover { transform: scale(1.15) rotate(-6deg); background: #FFF0F6; }

.composer-input {
  flex: 1;
  border: 2px solid #F1EAE0;
  background: var(--cream);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  resize: none;
  max-height: 120px;
  line-height: 1.3;
  transition: border-color 0.15s;
}
.composer-input:focus { border-color: var(--candy); }

.send-btn {
  background: linear-gradient(180deg, #FFA5C5 0%, var(--candy) 100%);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 0 #E06A96;
  transition: transform 0.1s, box-shadow 0.1s;
  flex-shrink: 0;
}
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #E06A96; }
.send-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #E06A96; }
.send-btn:disabled {
  background: #E8DEDE; color: #BBB;
  box-shadow: 0 3px 0 #CCC;
  cursor: not-allowed;
}

.confetti-burst {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  left: 50%; top: 50%;
}

.confetti-burst span {
  position: absolute;
  width: 10px; height: 14px;
  border-radius: 2px;
  animation: burst 1s ease-out forwards;
}
@keyframes burst {
  from { transform: translate(0,0) rotate(0deg) scale(1); opacity: 1; }
  to   { transform: var(--to) rotate(720deg) scale(0.5); opacity: 0; }
}

/* ---------- GIFT ---------- */
.gift {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.gift-hero {
  text-align: center;
  padding: 20px 0 10px;
}
.gift-hero .pop {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--candy);
  background: #fff;
  border: 2px dashed var(--candy);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.gift-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  margin: 14px 0 8px;
  line-height: 1.1;
}
.gift-hero p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 44px;
}
@media (max-width: 820px) {
  .gift-grid { grid-template-columns: 1fr; gap: 40px; }
}

.gift-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.gift-card-label {
  position: absolute;
  top: -14px; left: 24px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.gift-card-label.blue { background: var(--blue); color: var(--ink); }
.gift-card-label.pink { background: var(--candy); color: #fff; }

.gift-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin: 8px 0 4px;
}
.gift-card .caption {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

/* Polaroid */
.polaroid-wrap {
  display: flex;
  justify-content: center;
  padding: 14px 0 20px;
  perspective: 800px;
}
.polaroid {
  background: #fff;
  padding: 14px 14px 56px;
  box-shadow: var(--shadow-card);
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
  width: 260px;
  position: relative;
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px); }
.polaroid .photo {
  width: 100%;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: #F1EAE0;
}
.polaroid .photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.polaroid .hand {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--ink);
  pointer-events: none;
}
.polaroid .sticker-dot {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--sun);
  color: var(--ink);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px;
  transform: rotate(12deg);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  line-height: 1;
  text-align: center;
}

/* Coupon */
.coupon-wrap {
  display: flex;
  justify-content: center;
  padding: 14px 0 20px;
}
.coupon-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.coupon {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(135deg, #FFF3D0 0%, #FFE9F2 100%);
  border: 2.5px dashed var(--ink);
  border-radius: 18px;
  padding: 20px 22px 24px;
  position: relative;
  overflow: hidden;
}
.coupon::before, .coupon::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  background: var(--cream);
  border: 2.5px dashed var(--ink);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.coupon::before { left: -14px; border-right: none; border-top: none; }
.coupon::after  { right: -14px; border-left: none; border-bottom: none; }

.coupon .c-kicker {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.coupon .c-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}
.coupon .c-value {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 44px;
  color: var(--candy);
  line-height: 1;
  margin-bottom: 6px;
}
.coupon .c-body {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.5;
}
.coupon .c-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--ink);
  font-size: 11px;
  color: var(--ink-soft);
}
.coupon .c-code {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 1.5px;
  background: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
}
.coupon .c-seal {
  position: absolute;
  top: 14px; right: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--candy);
  font-size: 11px;
  border: 2px solid var(--candy);
  padding: 4px 8px;
  border-radius: 999px;
  transform: rotate(8deg);
  letter-spacing: 1px;
}

.dl-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.dl-row .btn { font-size: 16px; padding: 12px 22px; }

.gift-footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 2px dashed #F1EAE0;
}
.gift-footer p {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 14px;
}

/* ---------- TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.3);
  z-index: 9999;
  font-family: var(--font-body);
  font-size: 13px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.tweaks-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  display: flex; align-items: center; gap: 8px;
}
.tweaks-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.tweaks-panel input[type=text],
.tweaks-panel textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #EEE;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fff;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  width: 100%;
}
.tweaks-panel input[type=color] {
  width: 100%;
  height: 34px;
  border: 1.5px solid #EEE;
  border-radius: 8px;
  padding: 2px;
  background: #fff;
}
.tweaks-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tweaks-panel .row label { margin-bottom: 0; }
.tweaks-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding: 6px 0; }
.tweaks-toggle-row strong { text-transform: none; letter-spacing: normal; font-size: 13px; color: var(--ink); }

/* ---------- utility ---------- */
.visually-hidden {
  position: absolute !important;
  clip: rect(0,0,0,0);
  width: 1px; height: 1px;
  overflow: hidden;
}
