@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
/* ==== RESET & BASE ==== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; max-width: 720px; margin: 0 auto; background: #fff; font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ==== HEADER ==== */
.gd-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 720px; height: 140px;
  background: #fff; z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.gd-header .logo { height: 108px; }
.gd-header .btn-gnb {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  width: 60px; height: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0; background: none; border: none; cursor: pointer;
}
.gd-header .btn-gnb span {
  display: block; width: 100%; height: 6px; background: #333; border-radius: 4px;
}

/* ==== GNB OVERLAY ==== */
.gd-gnb {
  display: none;
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 720px; height: 100dvh;
  background: #FDF5DF; z-index: 200;
  flex-direction: column;
}
.gd-gnb.open { display: flex; }
.gd-gnb-head {
  height: 140px; display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.gd-gnb-head .logo { height: 108px; }
.gd-gnb-head .btn-close {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  font-size: 64px; color: #555; line-height: 1; background: none; border: none; cursor: pointer;
}
.gd-gnb-menu {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  padding: 40px 48px;
}
.gd-gnb-menu a {
  display: block; width: 100%; text-align: center;
  padding: 24px 40px; border-radius: 100px;
  font-size: 34px; font-weight: 600; color: #333;
  background: #ccc;
  line-height: 1;
}
.gd-gnb-menu a.gnb-home    { background: #FFA726; }
.gd-gnb-menu a.gnb-gospel  { background: #66BB6A; }
.gd-gnb-menu a.gnb-mypage  { background: #26C6DA; }
.gd-gnb-menu a.gnb-manual  { background: #42A5F5; }
.gd-gnb-menu a.gnb-rank    { background: #AB47BC; }
.gd-gnb-foot {
  padding: 32px 48px 48px; border-top: 1px solid rgba(0,0,0,0.08);
  display: flex; justify-content: center; gap: 48px; flex-shrink: 0;
}
.gd-gnb-foot a { font-size: 30px; color: #888; }

/* ==== MAIN CONTENT ==== */
.gd-content { padding-top: 140px; min-height: 100vh; }

/* ==== FOOTER ==== */
.gd-footer {
  padding: 48px 40px 80px;
  background: #fff; text-align: center;
  border-top: 1px solid #eee;
  font-family: 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;
}
.ft-logo {
  height: 60px; margin: 0 auto 16px;
}
.ft-address, .ft-contact {
  font-size: 22px; font-weight: 400; color: #444; line-height: 1.8;
}
.ft-copyright {
  font-size: 20px; color: #444; margin-top: 8px;
}
.gd-footer .privacy-link {
  font-size: 22px; color: #444; cursor: pointer;
  background: none; border: none; font-family: inherit;
  text-decoration: underline;
}
/* ==== FOOTER additions ==== */
.gd-footer-links {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 16px; margin-bottom: 4px;
}
.gd-footer-links .privacy-link {
  font-size: 22px; color: #444; cursor: pointer;
  background: none; border: none; font-family: inherit;
  text-decoration: underline;
}
.gd-footer-links span {
  font-size: 22px; color: #444;
}
.gd-footer .copyright2 {
  font-size: 20px; color: #444; margin-top: 8px;
}


/* ==== BUTTON PRIMARY ==== */
.btn-primary {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 120px;
  background: #FFB800; color: #fff;
  font-size: 40px; font-weight: 700;
  border-radius: 500px; border: none; cursor: pointer;
  text-decoration: none;
}
.btn-primary:disabled { background: #ddd; color: #aaa; cursor: not-allowed; }

/* ==== KV (INDEX) ==== */
.gd-kv { width: 100%; position: relative; line-height: 0; margin-top: -140px; }
.gd-kv-img { width: 100%; display: block; }
.gd-kv-title {
  position: absolute;
  top: 55%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68%;
}
.gd-kv-btn-wrap {
  position: absolute;
  bottom: 5%; left: 50%;
  transform: translateX(-50%);
  width: 82%;
}
.gd-kv-bottom {
  background: #fff;
  text-align: center;
  padding: 28px 40px 36px;
}
.gd-kv-sub {
  font-size: 28px; color: #555; margin-bottom: 36px;
  font-family: 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;
}
.gd-kv-btn-wrap {
  display: flex; justify-content: center;
}
.btn-start {
  display: flex; align-items: center; justify-content: center;
  width: 640px; height: 120px;
  background: #FFB800; color: #333;
  font-size: 40px; font-weight: 800; border-radius: 500px;
  text-decoration: none;
}

/* ==== LOGIN ==== */
.gd-login-kv {
  width: 100%; position: relative; margin-top: -140px; line-height: 0;
}
.gd-login-kv .gd-kv-img {
  width: 100%; display: block;
  min-height: 900px; object-fit: cover; object-position: center top;
}
.gd-login-overlay {
  position: absolute; inset: 0;
  background: rgba(136, 119, 109, 0.75);
  mix-blend-mode: multiply;
}
.gd-login-content {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 200px 40px 80px;
  line-height: normal;
}
.gd-login-title {
  font-size: 52px; font-weight: 900; color: #fff;
  margin-bottom: 20px; text-align: center;
}
.gd-login-desc {
  font-size: 26px; color: rgba(228,228,228,1);
  line-height: 1.6; text-align: center; margin-bottom: 48px;
}
.gd-login-error {
  background: rgba(220,53,69,0.9); color: #fff;
  border-radius: 12px; padding: 16px 24px;
  font-size: 26px; text-align: center;
  margin-bottom: 24px; line-height: 1.5; width: 100%;
}
.gd-login-form {
  display: flex; flex-direction: column; gap: 16px; width: 100%;
}
.gd-login-input {
  width: 100%; padding: 28px 32px;
  border: none; border-radius: 16px;
  font-size: 32px; font-family: inherit; color: #222;
  background: #fff; outline: none; box-sizing: border-box;
}
.gd-login-input::placeholder { color: #b8b8b8; }
.gd-login-btn {
  width: 100%; height: 120px;
  background: #FFB800; color: #222;
  font-size: 40px; font-weight: 800;
  border: none; border-radius: 500px;
  cursor: pointer; font-family: inherit;
}
.gd-register-btn {
  background: transparent;
  border: 3px solid rgba(255,255,255,0.7);
  color: #fff;
}

/* ==== MENU ==== */
.gd-menu-area {
  background: #f5f5f5;
  padding: 40px;
  display: flex; flex-direction: column; gap: 40px;
  min-height: calc(100vh - 140px);
}
.gd-menu-card {
  display: block; position: relative;
  height: 320px; overflow: hidden;
  border-radius: 16px; text-decoration: none;
}
.card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.card-overlay {
  position: absolute; inset: 0;
}
.card-icon {
  position: absolute;
  top: 100px; left: 54px;
  height: 80px;
}
.card-name {
  position: absolute;
  bottom: 44px; left: 56px;
  font-size: 44px; font-weight: 500;
  color: #fff; letter-spacing: -1.76px;
  line-height: 1;
}

/* ==== GOSPEL PAGE ==== */
.gd-gospel-wrap {
  background: #fbf4e3;
  min-height: calc(100vh - 140px);
  padding-bottom: 80px;
}
.gd-gospel-top {
  padding: 48px 40px 0;
}
.gd-gospel-title {
  font-size: 52px; font-weight: 800; color: #333;
  text-align: center; margin-bottom: 40px;
}

.gd-name-group { margin-bottom: 28px; }
.gd-name-input {
  width: 100%; height: 112px;
  background: #fff; border: none;
  border-radius: 24px; padding: 0 40px;
  font-size: 30px; color: #333; font-family: inherit;
  outline: none; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.gd-name-input::placeholder { color: #c0b8a8; }

.gd-type-tabs { display: flex; gap: 16px; margin-bottom: 40px; }
.gd-type-tab {
  flex: 1; height: 96px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #ffeab5; border-radius: 16px;
  font-size: 32px; font-weight: 700; color: #7c7c7c;
  background: #fff; cursor: pointer; font-family: inherit;
}
.tab-check { display: none; }
.gd-type-tab.active { border-color: #FFB800; background: #FFB800; color: #fff; }
.gd-type-tab.active .tab-check { display: inline; }

.gd-egg-display { padding: 0 40px; }
.guide-text { font-size: 28px; color: #888; text-align: center; margin-bottom: 8px; }
.guide-sub { font-size: 24px; color: #bbb; text-align: center; margin-bottom: 28px; }

.gd-egg-tray-outer {
  position: relative;
  margin-bottom: 32px;
}
.egg-bg-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.egg-state-img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
  pointer-events: none;
}

/* 슬롯 라벨 (계란판 위 텍스트) */
.egg-slot-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 26px; font-weight: 500; color: #7e7066;
  white-space: nowrap; z-index: 1; pointer-events: none;
  text-align: center; line-height: 1.5;
}
.egg-slot-label.filled { color: #7e7066; }
.label-sub { font-size: 22px; color: #a79381; display: block; text-align: center; }

/* 1구 라벨 */
#egg-label-1-1 { left: 50%; top: 40%; }

/* 2구 라벨 */
#egg-label-2-1 { left: 31%; top: 40%; }
#egg-label-2-2 { left: 67%; top: 40%; }

/* 담기 pill 버튼 (계란판 위 절대 배치 공통) */
.gd-damgi-pill {
  position: absolute;
  bottom: 12%;
  left: 50%; transform: translateX(-50%);
  height: 54px; padding: 0 40px;
  background: #FFB800; color: #000;
  font-size: 26px; font-weight: 500;
  border-radius: 40px; border: none; cursor: pointer; font-family: inherit;
  white-space: nowrap; z-index: 1;
  transition: background 0.15s, color 0.15s;
}
.gd-damgi-pill:disabled { background: #D0D0D0; color: #7C7C7C; cursor: default; }
.slot-name { font-size: 26px; font-weight: 500; }

/* 1구 버튼 */
#slot1-1 { left: 50%; }

/* 2구 버튼 */
#slot2-1 { left: 30%; }
#slot2-2 { left: 67%; }

.gd-save-area { padding: 32px 40px 0; }
.gd-save-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 120px;
  background: #FFB800; color: #fff;
  font-size: 40px; font-weight: 700;
  border-radius: 500px; border: none; cursor: pointer; font-family: inherit;
}
.gd-save-btn:disabled { background: #fce29f; color: #fff; cursor: not-allowed; }

/* ==== POPUPS ==== */
.gd-popup-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 300;
  align-items: flex-end; justify-content: center;
}
.gd-popup-overlay.open { display: flex; }
.gd-popup-box {
  width: 100%; max-width: 720px;
  background: #fff; border-radius: 40px 40px 0 0;
  padding: 80px 48px 64px;
  position: relative;
  max-height: 90dvh; overflow-y: auto;
}
.gd-popup-close {
  position: absolute; right: 44px; top: 15px;
  width: 56px; height: 56px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
}
.gd-popup-box h3 { font-size: 44px; font-weight: 800; color: #333; margin-bottom: 32px; }
.gd-popup-box p { font-size: 28px; color: #888; line-height: 1.7; margin-bottom: 32px; }

/* 초청장 팝업 전용 */
.gd-invite-popup-box { padding-top: 52px; }
.gd-invite-header {
  display: flex; align-items: center; justify-content: center;
  position: relative; margin-bottom: 36px;
}
.gd-invite-header h3 {
  font-size: 36px; font-weight: 500; color: #222; margin: 0;
}
.gd-invite-popup-box .gd-popup-close {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 52px; color: #333;
}
.gd-invite-card-area {
  background: #f4f4f4; border-radius: 16px;
  overflow: hidden; margin-bottom: 24px;
}
.gd-invite-card-img { width: 100%; display: block; }

.gd-invite-textarea {
  width: 100%; height: 200px;
  border: 2px solid #eee; border-radius: 16px;
  padding: 24px; font-size: 28px; color: #333;
  resize: none; line-height: 1.6; margin-bottom: 32px;
  font-family: inherit; background: #f4f4f4;
}
.gd-invite-textarea:focus { border-color: #FFB800; outline: none; background: #fff; }
.gd-invite-textarea::placeholder { color: #b8b8b8; }
.gd-popup-save {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100px;
  background: #FFB800; color: #222;
  font-size: 36px; font-weight: 500; border-radius: 500px;
  border: none; cursor: pointer; font-family: inherit;
  letter-spacing: -0.04em;
}

/* ==== RESULT PAGE ==== */
.gd-result-card {
  margin: 40px; padding: 52px 44px 48px;
  background: #fff; border-radius: 32px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
}
.gd-result-card .to-name {
  font-size: 36px; color: #555; text-align: center; margin-bottom: 10px; line-height: 1.4;
}
.gd-result-card .to-name span { color: #FFB800; font-weight: 800; }
.gd-result-card .sub-text {
  font-size: 26px; color: #bbb; text-align: center; margin-bottom: 44px;
}
.egg-row {
  display: flex; gap: 24px; justify-content: center; align-items: flex-end;
}
.egg-item { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; }
.egg-item img { height: 140px; }
.egg-item span { font-size: 24px; color: #888; text-align: center; line-height: 1.4; }

.gd-result-actions {
  padding: 0 40px 80px;
  display: flex; flex-direction: column; gap: 16px;
}
.btn-kakao {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  width: 100%; height: 120px;
  background: #FEE500; color: #3A1D1D;
  font-size: 36px; font-weight: 700; border-radius: 500px;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-kakao img { height: 48px; }
.btn-kakao.disabled { opacity: 0.5; cursor: default; }
.btn-secondary {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 112px;
  font-size: 34px; font-weight: 600; border-radius: 500px;
  text-decoration: none; border: none; cursor: pointer; font-family: inherit;
}
.btn-outline { background: #fff; color: #999; border: 2px solid #ddd; }
.btn-warm    { background: #FFF8E6; color: #b87c00; }

/* ==== MYPAGE ==== */
.gd-page-title {
  font-size: 44px; font-weight: 700; color: #222;
  text-align: center; padding: 52px 40px 8px;
  letter-spacing: -0.04em;
}

.gd-list { padding: 24px 40px 80px; display: flex; flex-direction: column; gap: 24px; }
.gd-item {
  background: #fff; border-radius: 24px;
  padding: 36px 36px 32px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
/* 카드 헤더: 날짜+제목 / TALK 버튼 */
.item-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 12px; }
.item-info { display: flex; flex-direction: column; gap: 10px; }
.item-date { font-size: 24px; color: #FFB800; font-weight: 500; }
.item-title { font-size: 28px; font-weight: 400; color: #222; line-height: 1.3; }
.item-name { font-weight: 700; }
/* TALK 원형 버튼 */
.btn-kakao-circle {
  flex-shrink: 0;
  width: 84px; height: 84px; border-radius: 50%;
  background: #FEE500; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.btn-kakao-circle img { width: 52px; height: auto; }
/* 계란 트레이 */
.item-egg-tray {
  position: relative; width: 100%; margin-bottom: 32px; overflow: hidden;
}
.item-egg-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.item-egg-state {
  position: relative; display: block; width: 100%; height: auto; pointer-events: none;
}
.item-egg-label {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 22px; color: #7e7066; font-weight: 500;
  text-align: center; line-height: 1.4; pointer-events: none;
}
/* 수정/삭제 버튼 */
.item-actions { display: flex; gap: 16px; justify-content: center; }
.btn-edit, .btn-delete {
  width: 140px; height: 60px;
  font-size: 24px; color: #828282;
  border: 2px solid #e0e0e0; border-radius: 100px;
  cursor: pointer; background: #fff; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}

/* ==== EMPTY STATE ==== */
.gd-empty {
  text-align: center; padding: 120px 40px 80px;
  font-size: 30px; color: #aaa; line-height: 1.9;
}
.gd-empty a { color: #FFB800; text-decoration: underline; }

/* ==== RANK ==== */
.gd-rank-area { padding: 0 40px 80px; }
.gd-rank-item {
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: 24px; padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
.gd-rank-num {
  width: 72px; height: 72px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #FFB800; border-radius: 50%;
  font-size: 36px; font-weight: 900; color: #fff;
}
.gd-rank-num.rank1 { background: #FFB800; }
.gd-rank-num.rank2 { background: #C0C0C0; }
.gd-rank-num.rank3 { background: #C08040; }
.gd-rank-name { font-size: 34px; font-weight: 700; color: #333; flex: 1; }
.gd-rank-count { font-size: 32px; font-weight: 700; color: #FFB800; white-space: nowrap; }

/* ==== SCHEDULE ==== */
.gd-schedule-area { padding: 0 40px 80px; }
.gd-schedule-area img { width: 100%; border-radius: 16px; margin-bottom: 32px; }
.gd-schedule-area p { font-size: 30px; color: #555; line-height: 1.8; word-break: keep-all; }
.gd-manual-video-wrap { margin-top: 48px; }
.gd-manual-video-title { font-size: 32px; font-weight: 700; color: #333; margin-bottom: 20px; }
.gd-manual-video { width: 100%; border-radius: 16px; display: block; background: #000; }

#popup-manual { align-items: center; padding: 16px; }
#popup-manual .gd-popup-box {
  border-radius: 20px;
  width: 100%; max-width: 680px;
  padding: 52px 16px 20px;
  max-height: 92dvh;
}
#popup-manual .gd-popup-box h3 { font-size: 32px; margin-bottom: 16px; }
#popup-manual .gd-popup-close { top: 10px; right: 10px; }
#popup-manual video { width: 100%; border-radius: 8px; background: #000; display: block; }

/* ==== 개인정보처리방침 popup ==== */
.popup-wrap {
  display: none; position: fixed; inset: 0;
  z-index: 500; background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
  padding: 40px;
}
.popup-wrap.open { display: flex; }
.popup-inner {
  background: #fff; border-radius: 24px; padding: 48px 40px;
  max-width: 680px; width: 100%; max-height: 80dvh; overflow-y: auto;
}
.popup-inner h4 { font-size: 36px; font-weight: 800; margin-bottom: 24px; }
.popup-inner p { font-size: 26px; color: #555; line-height: 1.8; }
.popup-close {
  display: block; margin: 32px auto 0; width: 240px; height: 80px;
  background: #FFB800; color: #fff; font-size: 30px; font-weight: 700;
  border: none; border-radius: 100px; cursor: pointer; font-family: inherit;
}



/* ==== GNB member name ==== */
.gd-gnb-name {
  font-size: 28px; color: #777; align-self: center;
}

/* ==== Video list in popup ==== */
.gd-video-list { display: none; }
.gd-vtabs { display: flex; gap: 0; margin-bottom: 32px; }
.gd-vtab {
  flex: 1; height: 88px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid #ccc;
  font-size: 28px; font-weight: 500; color: #7c7c7c;
  background: #fff; cursor: pointer; font-family: inherit;
}
.gd-vtab:first-child { border-radius: 16px 0 0 16px; border-right: none; }
.gd-vtab:last-child  { border-radius: 0 16px 16px 0; }
.vtab-check { display: none; }
.gd-vtab.active { border-color: #FFB800; color: #222; }
.gd-vtab.active .vtab-check { display: inline; }

.gd-video-hint {
  display: flex; align-items: center; gap: 12px;
  font-size: 26px; color: #b8b8b8; margin-bottom: 24px;
}
.hint-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #b8b8b8; color: #fff;
  font-size: 22px; font-weight: 700; flex-shrink: 0;
}

.gd-video-panel { display: flex; flex-direction: column; gap: 24px; }
.gd-video-item { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; }
.gd-video-thumb-wrap { position: relative; width: 100%; }
.gd-video-thumb {
  width: 100%; height: auto; display: block;
  min-height: 160px; object-fit: cover;
}
.gd-video-thumb-placeholder { width: 100%; height: 280px; background: #f0e8d8; }
.gd-video-title { font-size: 28px; font-weight: 500; color: #333; line-height: 1.4; padding: 20px 24px; }
.gd-video-empty { font-size: 28px; color: #bbb; text-align: center; padding: 40px 0; }

.gd-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.88);
  border: none; border-radius: 50%;
  font-size: 28px; color: #333;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  z-index: 2;
}

/* ==== Result page egg button ==== */
.egg-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.egg-btn img { height: 140px; transition: transform 0.15s; }
.egg-btn:active img { transform: scale(0.95); }

/* ==== Invite result display ==== */
.gd-invite-result {
  font-size: 30px; color: #333; line-height: 1.8;
  padding: 24px; background: #FFF8E6; border-radius: 16px;
  margin-bottom: 32px; min-height: 120px; word-break: keep-all;
}

/* 초청장 팝업 - 가운데 정렬 */
#result-popup-invite {
  align-items: center;
}
#result-popup-invite .gd-popup-box {
  border-radius: 40px;
  width: 90%;
}
#result-popup-video {
  align-items: center;
}
#result-popup-video .gd-popup-box {
  border-radius: 40px;
  width: 90%;
}

/* ==== Video player in result popup ==== */
.gd-video-player-wrap { border-radius: 12px; overflow: hidden; }

/* 영상 선택 팝업 - 담기 버튼 (썸네일 우하단 고정) */
.gd-damgi-btn {
  position: absolute; bottom: 0; right: 0;
  height: 60px; padding: 0 32px;
  background: #FFB800; color: #fff;
  border: none; border-radius: 16px 16px 0 0;
  font-size: 24px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.gd-damgi-btn.is-selected { background: #e6a500; }
.gd-inline-video {
  width: 100%; display: none;
  border-radius: 10px 10px 0 0;
  background: #000; max-height: 420px;
}

/* 3구 라벨 */
#egg-label-3-1 { left: 23%; top: 46%; }
#egg-label-3-2 { left: 50%; top: 46%; }
#egg-label-3-3 { left: 77%; top: 46%; }

/* 3구 담기 버튼 오버레이 */
.gd-damgi-overlay {
  position: absolute;
  bottom: 14%; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 4%;
  z-index: 2;
}
.gd-damgi-overlay .gd-damgi-pill {
  position: static;
  bottom: auto; left: auto;
  transform: none;
}
#slot3-1 { transform: translateX(20px) !important; }
#slot3-3 { transform: translateX(-20px) !important; }
/* 감동왕 이미지 팝업 */
.gd-img-overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}
.gd-img-popup-inner {
  position: relative;
  width: 70vw !important;
  max-width: 70vw !important;
  max-height: 100dvh;
  overflow-y: auto;
  border-radius: 0;
}
.gd-img-popup-inner img {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  border-radius: 0 !important;
}
.gd-img-popup-close {
  position: fixed; top: 16px; right: 16px;
  width: 52px; height: 52px;
  background: rgba(0,0,0,0.6); border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
/* ==== RESULT PAGE (완성 화면) ==== */
.gd-result-top {
  padding: 52px 40px 24px;
  text-align: center;
}
.gd-result-greeting {
  font-size: 30px; font-weight: 700; color: #222;
  line-height: 1.5; margin-bottom: 12px;
}
.gd-result-name { color: #FFB800; }

.gd-result-label {
  color: #7e7066 !important;
  font-size: 24px;
}
/* 계란 위 클릭 영역 */
.gd-result-egg-tap {
  position: absolute;
  top: 2%; height: 78%;
  width: 28%;
  transform: translateX(-50%);
  background: transparent;
  border: none; cursor: pointer;
  z-index: 3;
}
.gd-result-kv {
  background: #fbf4e3;
  padding-bottom: 48px;
}

/* ==== Egg crack animation ==== */
@keyframes gdCrackIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes gdCrackBreak {
  0%   { transform: scale(1);    opacity: 1; }
  40%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0; }
}
.gd-crack-in    { animation: gdCrackIn    0.35s cubic-bezier(0.2,0,0,1.2) forwards; }
.gd-crack-break { animation: gdCrackBreak 0.45s ease-in forwards; }

/* mypage 초청장 팝업 */
#mp-popup-invite {
  align-items: center;
}
#mp-popup-invite .gd-popup-box {
  border-radius: 40px;
  width: 90%;
}

/* mypage 영상 팝업 */
#mp-popup-video {
  align-items: center;
}
#mp-popup-video .gd-popup-box {
  border-radius: 40px;
  width: 90%;
}

/* ==== Egg slot dashed outline ==== */
.gd-slot-outline {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}
.gd-slot-outline ellipse,
.gd-slot-outline path {
  transition: opacity 0.25s;
}
.gd-slot-outline ellipse.hidden,
.gd-slot-outline path.hidden {
  opacity: 0;
}
