* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000;
  color: #333;
  overflow: hidden;
}

.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ========== 시작 화면 ========== */
#start-screen {
  background: linear-gradient(160deg, #fff9f0 0%, #fff0f5 30%, #fef6e4 70%, #fff5f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#start-screen .content {
  padding: 2rem;
}

#start-screen h1 {
  font-size: 2.2rem;
  color: #2d2d2d;
  margin-bottom: 0.3rem;
}

#start-screen .subtitle {
  font-size: 1rem;
  color: #888;
  margin-bottom: 2.5rem;
}

#start-btn {
  background: linear-gradient(135deg, #f4d03f 0%, #f5a623 100%);
  color: #1a1a1a;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(244, 166, 35, 0.3);
}

/* 스탬프 현황 */
#stamp-status {
  margin-top: 2.5rem;
}

#stamp-status p {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.8rem;
}

#stamps {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  max-width: 280px;
  margin: 0 auto;
}

.stamp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: #fff;
}

.stamp.collected {
  border-color: #f4d03f;
  background: #fffbeb;
}

/* 인스타 링크 */
.insta-link {
  display: inline-block;
  margin-top: 2rem;
  color: #c13584;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ========== AR 화면 ========== */
#ar-screen {
  background: #000;
}

#ar-ui {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 100;
}

#ar-ui button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  font-size: 1.5rem;
  cursor: pointer;
}

#insta-btn {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  color: white !important;
  font-size: 1rem !important;
  font-weight: bold !important;
}

#close-btn {
  position: fixed;
  top: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
}

#scan-guide {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  padding: 1rem 2rem;
  border-radius: 12px;
  z-index: 50;
  pointer-events: none;
  color: #fff;
}

#scan-guide.hidden {
  display: none;
}

/* AR 준비중 토스트 */
.ar-coming-soon {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 1.2rem 2rem;
  border-radius: 16px;
  text-align: center;
  z-index: 200;
}

.ar-coming-soon .title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.ar-coming-soon .sub {
  font-size: 0.85rem;
  color: #aaa;
}

/* ========== 모달 공통 ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  max-width: 90%;
  width: 350px;
  color: #333;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #2d2d2d;
}

.modal-content .sub {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* 스탬프 모달 */
#stamp-collection {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#stamp-collection .stamp {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

#stamp-message {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-content button {
  background: linear-gradient(135deg, #f4d03f 0%, #f5a623 100%);
  color: #1a1a1a;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin: 0.3rem;
}

.modal-content button.secondary {
  background: #eee;
  color: #666;
}

.modal-content button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== 보상 모달 - 작품 선택 ========== */
.modal-content.reward {
  width: 380px;
}

#artwork-select {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.artwork-option {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 3px solid #eee;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.artwork-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-option.selected {
  border-color: #f4d03f;
  box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.3);
}

.artwork-option:hover {
  transform: scale(1.05);
}

.a-enter-vr {
  display: none !important;
}
