/* ================== 성수동 팝업 스타일 (The Masterpiece) ================== */

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #fad0c4, #a18cd1);
  background-size: 400% 400%;
  animation: auroraGradient 10s ease infinite;
  color: #333;
  text-align: center;
  
  min-height: 100vh;
  min-height: 100svh; 
  overflow-x: hidden;
  
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  
  /* [최적화] 모바일 배경 애니메이션 성능 향상 */
  will-change: background-position;
}

@keyframes auroraGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fade-in { animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.fade-out { animation: fadeOut 0.5s ease-in forwards; }
@keyframes fadeOut { to { opacity: 0; transform: scale(0.95); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 메뉴 공통 */
.contact-container { position: absolute; top: 20px; left: 20px; z-index: 100; text-align: left; }
.language-container { position: absolute; top: 20px; right: 20px; z-index: 100; }

.contact-button, .language-button {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.03);
  transition: all 0.2s;
  font-family: 'Pretendard', sans-serif;
}

.contact-button:focus-visible, .language-button:focus-visible, .start-btn:focus-visible, 
.language-menu button:focus-visible, .email-copy-btn:focus-visible {
  outline: 3px solid rgba(255, 74, 141, 0.6);
  outline-offset: 2px;
}

.contact-button:hover, .language-button:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.contact-menu, .language-menu {
  position: absolute;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: none;
  opacity: 0;
  visibility: hidden; 
  transform: translateY(-5px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 101;
  display: flex;
  flex-direction: column;
}
.contact-menu { left: 0; width: 260px; }
.language-menu { right: 0; width: 140px; }

.contact-menu.open, .language-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(5px);
}

.email-box { padding: 20px; }
.email-box p { margin: 0 0 8px; font-weight: 700; font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: 1px; }

.email-copy-btn { 
  background: none; border: none; padding: 0;
  color: #ff4a8d; font-weight: 700; font-size: 14px; 
  text-decoration: none; display: block; word-break: break-all;
  cursor: pointer; font-family: 'Pretendard', sans-serif;
  text-align: left; width: 100%;
}
.email-copy-btn:hover { text-decoration: underline; opacity: 0.8; }

.language-menu button { 
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 16px; 
  cursor: pointer; 
  font-size: 14px; 
  text-align: left; 
  color: #333;
  font-family: 'Pretendard', sans-serif;
  border-bottom: 1px solid rgba(0,0,0,0.03); 
  transition: background 0.2s;
}
.language-menu button:last-child { border-bottom: none; }
.language-menu button:hover { background: #fff0f5; color: #ff4a8d; }

.main-container {
  width: 100%;
  max-width: 420px; 
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; 
  box-sizing: border-box;
}

.badge-container {
  width: 100px; height: 100px;
  border-radius: 50%; overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(255, 74, 141, 0.25);
  border: 4px solid #fff;
  background: #fff;
  display: flex; justify-content: center; align-items: center;
}
.flag-badge { width: 85%; height: 85%; object-fit: contain; display: block; }

h1 {
  font-family: 'GmarketSans', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  color: #222;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  white-space: pre-line; 
  word-break: normal;
  overflow-wrap: break-word;
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 32px;
  white-space: pre-line;
  word-break: normal;
  overflow-wrap: break-word;
}

:lang(ko) h1, :lang(ko) p { word-break: keep-all; }

.disclaimer-text {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.5); 
  margin-top: 20px; 
  margin-bottom: 30px;
  line-height: 1.4;
  max-width: 90%;
  text-align: center;
}

.start-btn {
  width: 100%;
  padding: 18px 0;
  font-family: 'GmarketSans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  background: #ff4a8d;
  color: #ffffff;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 20px rgba(255, 74, 141, 0.3);
}
.start-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.start-btn:hover:not(:disabled) {
  background: #ff2e7a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 25px rgba(255, 74, 141, 0.4);
}
.start-btn:active:not(:disabled) { transform: scale(0.98); }

.footer-simple {
    position: absolute; bottom: 20px; width: 100%;
    text-align: center; font-size: 11px; opacity: 0.6; pointer-events: auto;
}
.footer-link { color: #333; text-decoration: none; font-weight: 500; }
.footer-link:hover { text-decoration: underline; }

.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 9999;
    display: flex; justify-content: center;
    animation: slideUp 0.5s ease-out;
    box-sizing: border-box;
}

.cookie-content {
    width: 100%; max-width: 600px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cookie-text { font-size: 12px; color: #555; line-height: 1.4; margin: 0; text-align: left; }
.cookie-link { color: #ff4a8d; text-decoration: underline; cursor: pointer; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-decline, .btn-cookie-accept {
    padding: 10px 18px; border-radius: 99px; font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: 'GmarketSans', sans-serif; transition: all 0.2s;
}
.btn-cookie-decline { background: transparent; border: 1px solid #ddd; color: #666; }
.btn-cookie-decline:hover { background: #f0f0f0; }
.btn-cookie-accept { background: #333; border: none; color: #fff; }
.btn-cookie-accept:hover { background: #000; transform: translateY(-1px); }

.toast-message {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
    background: rgba(0,0,0,0.8); color: #fff; padding: 12px 24px;
    border-radius: 99px; font-size: 14px; font-weight: 600;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 2000;
}
.toast-message.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
    .cookie-content { flex-direction: column; align-items: flex-start; gap: 15px; }
    .cookie-buttons { width: 100%; }
    .btn-cookie-decline, .btn-cookie-accept { flex: 1; text-align: center; }
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }