html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.scene {
  position: relative;
  width: 320px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: linear-gradient(160deg, #fff6d9, #ffd23f 85%);
}

.frame {
  position: absolute;
  left: 14px;
  top: 8px;
  width: 234px;
  height: 156px;
}

.chip {
  position: absolute;
  width: 42px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6ec8ff, #4cd4a6);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chipGlyph {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.28);
}

.arrangeBtn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border: none;
  border-radius: 12px;
  background: #17141a;
  color: #fff7e6;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}
.arrangeBtn:focus-visible {
  outline: 2px solid #6ec8ff;
  outline-offset: 2px;
}
.arrangeBtn:active {
  transform: translateY(1px);
}

.status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.1);
  color: #17141a;
  font-size: 10px;
}

@media (max-width: 340px) {
  .scene {
    width: 220px;
    height: 124px;
  }
  .frame {
    left: 8px;
    top: 6px;
    width: 160px;
    height: 104px;
  }
  .chip {
    width: 30px;
    height: 24px;
  }
  .chipGlyph {
    width: 10px;
    height: 10px;
  }
  .arrangeBtn, .status {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .arrangeBtn {
    transition: none;
  }
}
