/* Color Hunt 커스텀 스타일 */

/* 전역 스타일 - Alan Sans 폰트 적용 */
* {
  font-family: 'Alan Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: 'Alan Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 배경 이미지 스타일 */
.auth-background {
  /* 파란색 그라디언트 fallback (Color Hunt 파란색 기반) */
  background: linear-gradient(135deg, #B3D3FF 0%, #dbeafe 50%, #e0e7ff 100%);
}

.main-background {
  /* 파란색 그라디언트 fallback (Color Hunt 파란색 기반) */
  background: linear-gradient(180deg, #B3D3FF 0%, #dbeafe 50%, #f0f9ff 100%);
}

/* 배경 이미지가 로드되지 않을 때를 대비한 fallback */
.auth-background[style*="collage-background.jpg"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main-background[style*="collage-background.jpg"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 콜라주 배경 이미지 전용 스타일 */
.auth-background, .main-background {
  /* 이미지가 부족할 경우 반복하여 채우기 */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  
  /* 이미지 크기가 작으면 파란색으로 채우기 */
  background-color: #B3D3FF;
}

/* 컬러 그리드 스타일 */
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.photo-slot {
  aspect-ratio: 1;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 80px; /* 최소 높이 보장 */
  width: 100%; /* 너비 100% 보장 */
}

.photo-slot:hover {
  border-color: #6366f1;
  background: #f0f9ff;
}

.photo-slot.filled {
  border: 2px solid #10b981;
  border-style: solid;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.photo-slot .camera-icon {
  font-size: 24px;
  color: #9ca3af;
}

.photo-slot.filled .camera-icon {
  display: none;
}

/* 컬러 선택 카드 */
.color-card {
  background: linear-gradient(135deg, var(--color-hex) 0%, var(--color-hex) 100%);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.color-card:hover {
  transform: translateY(-5px);
}

.color-card h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.color-card.light-color h2 {
  color: #1f2937;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
}

/* 버튼 스타일 */
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  text-decoration: none;
}

.btn-primary {
  background: #6366f1;
  color: white;
}

.btn-primary:hover {
  background: #5048e5;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover {
  background: #d1d5db;
  transform: translateY(-2px);
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

/* 새로운 배경색 대응 버튼 스타일 */
.btn-dark {
  background: #2D2D2D;
  color: white;
}

.btn-dark:hover {
  background: #1f1f1f;
  transform: translateY(-2px);
}

.btn-light {
  background: #FFFFFF;
  color: #2D2D2D;
}

.btn-light:hover {
  background: #F3F4F6;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: #2D2D2D;
  border: 2px solid #2D2D2D;
}

.btn-outline-dark:hover {
  background: #2D2D2D;
  color: white;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 프로그레스 바 */
.progress-bar {
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  height: 8px;
  margin: 1rem 0;
}

.progress-fill {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  height: 100%;
  transition: width 0.5s ease;
  border-radius: 10px;
}

/* 모달 스타일 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
}

.modal-close:hover {
  color: #374151;
}

/* 기존 카메라 관련 스타일 (모달용 - 호환성 유지) */
.camera-preview {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  background: #000;
}

.camera-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.capture-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  border: 4px solid #6366f1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capture-btn:hover {
  transform: scale(1.1);
}

.capture-btn:active {
  transform: scale(0.95);
}

/* 새로운 전체 화면 카메라 스타일 */
.fullscreen-camera {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.fullscreen-video {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.camera-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  z-index: 10;
}

.camera-back-btn {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.camera-back-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.05);
}

.camera-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.photo-number {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.color-name {
  font-size: 14px;
  opacity: 0.9;
}

.camera-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  z-index: 10;
}

.camera-controls-fullscreen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 300px;
  margin: 0 auto;
}

.cancel-btn-fullscreen {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cancel-btn-fullscreen:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.capture-btn-fullscreen {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.capture-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.capture-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  transition: all 0.2s ease;
}

.capture-btn-fullscreen:hover .capture-circle {
  transform: scale(1.1);
}

.capture-btn-fullscreen:active .capture-circle {
  transform: scale(0.95);
}

.capture-btn-fullscreen:active .capture-inner {
  transform: scale(0.8);
}

.camera-spacer {
  width: 50px; /* 좌우 대칭을 위한 빈 공간 */
}

/* 이력 관련 스타일 */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.history-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.history-card:hover {
  transform: translateY(-5px);
}

.history-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.history-card-content {
  padding: 1rem;
}

/* 반응형 스타일 */
@media (max-width: 640px) {
  .color-grid {
    max-width: 280px;
    gap: 6px;
  }
  
  .modal-content {
    margin: 10px;
    padding: 1.5rem;
  }
  
  .color-card {
    padding: 1.5rem;
    margin: 0 10px;
  }
  
  .color-card h2 {
    font-size: 2rem;
  }
}

/* 애니메이션 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
  40%, 43% { transform: translateY(-20px); }
  70% { transform: translateY(-10px); }
  90% { transform: translateY(-4px); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out;
}

.animate-bounce-once {
  animation: bounce 1s ease-in-out;
}

/* 로딩 스타일 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 새로운 모던 콜라주 화면 스타일 */
.modern-collage-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px 16px; /* 하단 패딩 줄임 */
  max-width: 400px;
  margin: 0 auto;
}

.collage-header {
  text-align: center;
  margin-bottom: 32px;
}

.date-display {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 12px;
  font-weight: 500;
}

.color-question {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.progress-track {
  flex: 1;
  max-width: 200px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill-modern {
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  min-width: 40px;
  text-align: center;
}

.photo-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  /* 반응형 너비 설정 */
  width: min(350px, calc(100vw - 40px));
  margin-left: auto;
  margin-right: auto;
}

.photo-grid-modern .photo-slot {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 80px; /* 최소 높이 보장 */
  width: 100%; /* 너비 100% 보장 */
}

.photo-grid-modern .photo-slot:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.6);
}

.photo-grid-modern .photo-slot.filled {
  border-color: rgba(255, 255, 255, 0.8);
}

.photo-grid-modern .photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.photo-grid-modern .camera-icon {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.collage-actions {
  margin-top: 0; /* auto에서 0으로 변경 - 콜라주 바로 아래 배치 */
  text-align: center;
  display: flex !important;
  flex-direction: column;
  gap: 20px; /* 간격 줄임 */
  min-height: auto; /* 최소 높이 자동으로 */
  padding: 0; /* 패딩 제거 */
}

.main-action-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: inherit !important;
  backdrop-filter: blur(10px);
  display: block !important; /* 강제로 보이게 */
  visibility: visible !important; /* 가시성 확보 */
  opacity: 1 !important; /* 투명도 확보 */
}

.main-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.secondary-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.text-action-btn {
  background: none;
  border: none;
  color: inherit !important;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s ease;
  padding: 8px;
  display: inline-block !important; /* 강제로 보이게 */
  visibility: visible !important; /* 가시성 확보 */
}

.text-action-btn:hover {
  opacity: 1;
}

/* 사진 상세보기 화면 스타일 */
.photo-detail-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  max-width: 400px;
  margin: 0 auto;
}

.photo-detail-header {
  text-align: center;
  margin-bottom: 32px;
}

.photo-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.photo-display-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.photo-display-frame {
  width: 100%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(10px);
}

.photo-display-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.photo-detail-actions {
  display: flex !important; /* 강제로 보이게 */
  gap: 16px;
  justify-content: center;
  min-height: 60px; /* 최소 높이 확보 */
  padding: 16px 0; /* 패딩 추가 */
}

.detail-action-btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: inherit !important;
  backdrop-filter: blur(10px);
  min-width: 100px;
  display: inline-block !important; /* 강제로 보이게 */
  visibility: visible !important; /* 가시성 확보 */
  opacity: 1 !important; /* 투명도 확보 */
}

.detail-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* 깔끔한 히스토리 화면 스타일 */
.clean-history-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  max-width: 400px;
  margin: 0 auto;
}

.history-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.history-back-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  padding: 8px;
  margin-right: 12px;
}

.history-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* 빈 상태 디자인 */
.empty-history-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

.empty-message {
  margin-bottom: 80px;
}

.empty-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.find-color-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 24px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.find-color-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
}

/* 콜라주 목록 스타일 */
.history-collages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-collage-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  backdrop-filter: blur(10px);
}

.collage-preview {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 12px;
}

.collage-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.collage-color {
  font-size: 16px;
  font-weight: 600;
}

.collage-date {
  font-size: 12px;
  opacity: 0.7;
}

.download-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 8px;
}

.download-btn:hover {
  opacity: 1;
}

/* 무제한 모드 스타일 */
.unlimited-collage-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 10px; /* 좌우 10px */
  max-width: 400px;
  margin: 0 auto;
}

.unlimited-header {
  text-align: center;
  margin-bottom: 20px;
}

.unlimited-header .date-display {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
  font-weight: 500;
}

.unlimited-header .color-question {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* 15개 슬롯 그리드 (3x5) - 좌우 10px 제외하고 최대한 활용 */
.unlimited-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 20px;
  width: 100%; /* 좌우 10px 제외한 전체 너비 */
  aspect-ratio: 3/5; /* 3:5 비율 유지 */
}

.unlimited-photo-slot {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.unlimited-photo-slot:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.6);
}

.unlimited-photo-slot.filled {
  border-color: rgba(255, 255, 255, 0.8);
}

.unlimited-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.unlimited-actions {
  margin-top: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}

.complete-action-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: inherit;
  backdrop-filter: blur(10px);
}

.complete-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.complete-requirement {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* 반응형 개선 */
@media (max-width: 400px) {
  .modern-collage-screen,
  .photo-detail-screen,
  .clean-history-screen,
  .unlimited-collage-screen {
    padding: 16px 8px; /* 모바일에서 좌우 8px */
  }
  
  .photo-grid-modern {
    width: min(320px, calc(100vw - 20px));
    gap: 6px;
  }
  
  .unlimited-photo-grid {
    gap: 4px; /* 모바일에서 간격 줄임 */
  }
  
  .color-question {
    font-size: 16px;
  }
  
  .unlimited-header .color-question {
    font-size: 16px;
  }
  
  .empty-title {
    font-size: 28px;
  }
}

/* 무제한 모드 전용 추가 스타일 */
.unlimited-collage-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 16px 16px;
  max-width: 400px;
  margin: 0 auto;
}

.unlimited-header {
  text-align: center;
  margin-bottom: 20px;
}

.unlimited-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 20px;
  width: calc(100% - 20px); /* 좌우 10px 여백 */
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}

.unlimited-photo-slot {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  width: 100%;
}

.unlimited-photo-slot:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.6);
}

.unlimited-photo-slot.filled {
  border-color: rgba(255, 255, 255, 0.8);
}

.unlimited-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.unlimited-actions {
  margin-top: 0;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.complete-action-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: inherit !important;
  backdrop-filter: blur(10px);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.complete-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.complete-requirement {
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

/* 정방형 카메라 스타일 */
.square-camera-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.square-camera-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 20px 16px 20px;
  position: relative;
  z-index: 10;
}

.square-camera-close {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.square-camera-info {
  text-align: center;
}

.square-photo-number {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
}

.square-camera-color {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

.square-camera-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.square-preview-frame {
  width: min(350px, calc(100vw - 40px));
  height: min(350px, calc(100vw - 40px));
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: #000;
}

.square-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.square-camera-footer {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.square-capture-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.square-capture-circle {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.square-capture-btn:active .square-capture-circle {
  transform: scale(0.95);
  border-color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.2);
}

.square-capture-inner {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}