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

.design-viewport-scaled {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  margin-left: -960px;
  margin-top: -540px;
  transform-origin: center center;
  z-index: 0;
}
#design-viewport-front {
  z-index: 2;
  pointer-events: none;
}
#design-viewport-front .popup-frame-wrapper,
#design-viewport-front .enter-buttons-layer,
#design-viewport-front .modal-overlay {
  pointer-events: auto;
}

.list-image-screen {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.list-image-screen img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
.list-image-screen.is-ready img {
  opacity: 1;
}

.design-bg {
  position: absolute;
  inset: 0;
  background-image: url('background.png?v=2');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body {
  min-height: 100vh;
  background: #fff;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.popup-frame-wrapper {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 754px;
  height: 576px;
  z-index: 10001;
  pointer-events: auto;
  overflow: visible;
}

.popup-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

.enter-buttons-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  z-index: 10000;
  pointer-events: none;
}

.enter-buttons-layer .enter-btn {
  pointer-events: auto;
}

a {
  color: #1346FF;
  font-weight: 600;
  text-decoration: underline;
}

.table-container {
  position: absolute;
  left: var(--list-left, 0);
  top: var(--list-top, 0);
  width: var(--list-width, 800px);
  aspect-ratio: 1331 / 439.33;
  z-index: 1;
}

.enter-btn {
  position: absolute;
  left: 2.6%;
  top: 16.84%;
  width: 80.47px;
  height: 40.74px;
  padding: 0;
  border: none;
  border-radius: 8.15px;
  background-color: #1EA5B7;
  color: white;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.enter-btn::before {
  content: '';
  position: absolute;
  inset: -14px;
}

.enter-btn:hover,
.enter-btn:active {
  background-color: #72CB23 !important;
  background: #72CB23 !important;
}

.enter-btn:nth-child(2) { top: 29.04%; }
.enter-btn:nth-child(3) { top: 41.24%; }
.enter-btn:nth-child(4) { top: 53.44%; }
.enter-btn:nth-child(5) { top: 65.64%; }
.enter-btn:nth-child(6) { top: 77.84%; }
.enter-btn:nth-child(7) { top: 90.04%; }

.content {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  z-index: 1;
  pointer-events: none;
}

.modal-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(1.2);
  transform-origin: center center;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #eee;
  background: #F8FCF2;
}
.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}
.modal-close {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
}
.modal-close img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-close:hover {
  background: #e8e8e8;
}
.modal-close:hover img {
  opacity: 0.85;
}
.modal-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 30px 20px 30px;
}
.modal-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.modal-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}
.modal-message strong {
  color: #c62828;
  font-weight: 600;
}
.modal-footer {
  padding: 15px 15px;
  display: flex;
  justify-content: center;
  border-top: 1px solid #e0e0e0;
}
.modal-confirm {
  width: 85px;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: #1EA5B7;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-confirm:hover {
  background: #208c82;
}
.modal-confirm:active {
  background: #1a7269;
}
